Merge pull request #8148 from NoahGorny/improve-dev-docs

docs: getting-started: Improve running pip from source tree section
This commit is contained in:
Pradyun Gedam 2020-05-31 23:10:34 +05:30 committed by GitHub
commit 549a9d11a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -34,12 +34,16 @@ For developing pip, you need to install :pypi:`tox`. Often, you can run
Running pip From Source Tree
============================
To run the pip executable from your source tree during development, run pip
from the ``src`` directory:
To run the pip executable from your source tree during development, install pip
locally using editable installation (inside a virtualenv).
You can then invoke your local source tree pip normally.
.. code-block:: console
$ python src/pip --version
$ virtualenv venv # You can also use "python -m venv venv" from python3.3+
$ source venv/bin/activate
$ python -m pip install -e .
$ python -m pip --version
Running Tests

2
news/8148.trivial Normal file
View File

@ -0,0 +1,2 @@
Improve "Running pip from source tree" section in getting-started
to use editable installation instead of running pip directly from source.