Skip to content

Commit cc3b3f6

Browse files
committed
Add note about install/upgrade behavior to docs
Towards pypa#8115.
1 parent b39aeeb commit cc3b3f6

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

docs/html/development/architecture/upgrade-options.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
Options that control the installation process
33
=============================================
44

5-
When installing packages, pip chooses a distribution file, and installs it in
6-
the user's environment. There are many choices involved in deciding which file
7-
to install, and these are controlled by a variety of options.
5+
When installing packages, pip chooses a distribution file, and
6+
installs it in the user's environment. There are many choices (which
7+
are `still evolving`_) involved in deciding which file to install, and
8+
these are controlled by a variety of options.
89

910

1011
Controlling what gets installed
@@ -118,3 +119,6 @@ necessarily resolution or what gets installed.
118119
``--constraint``
119120

120121
``--editable <LOCATION>``
122+
123+
124+
.. _still evolving: https://github.com/pypa/pip/issues/8115

docs/html/reference/pip_install.rst

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ pip install has several stages:
3636
3. Build wheels. All the dependencies that can be are built into wheels.
3737
4. Install the packages (and uninstall anything being upgraded/replaced).
3838

39+
Note that ``pip install`` prefers to leave the installed version as-is
40+
unless ``--upgrade`` is specified.
41+
3942
Argument Handling
4043
-----------------
4144

0 commit comments

Comments
 (0)