diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2019-04-14 12:02:36 -0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-04-18 14:41:15 +0200 |
| commit | aed89adad54a977829c4f180b036033e031ebcc7 (patch) | |
| tree | 95a71faf7fbff157c6a6fdd4e157b83393a228ee /docs/internals/contributing/writing-code | |
| parent | ceab25bc6d0d095acfcea46c35d93c17d008fd35 (diff) | |
Fixed #30367 -- Changed "pip install" to "python -m pip install" in docs, comments and hints.
Diffstat (limited to 'docs/internals/contributing/writing-code')
3 files changed, 6 insertions, 6 deletions
diff --git a/docs/internals/contributing/writing-code/coding-style.txt b/docs/internals/contributing/writing-code/coding-style.txt index 67602b87da..ab7cc0baa9 100644 --- a/docs/internals/contributing/writing-code/coding-style.txt +++ b/docs/internals/contributing/writing-code/coding-style.txt @@ -96,7 +96,7 @@ Imports .. console:: - $ pip install isort + $ python -m pip install isort $ isort -rc . This runs ``isort`` recursively from your current directory, modifying any diff --git a/docs/internals/contributing/writing-code/javascript.txt b/docs/internals/contributing/writing-code/javascript.txt index 941fa085e8..bcb83d18bc 100644 --- a/docs/internals/contributing/writing-code/javascript.txt +++ b/docs/internals/contributing/writing-code/javascript.txt @@ -55,7 +55,7 @@ version. To run it: .. console:: - $ pip install closure + $ python -m pip install closure $ python django/contrib/admin/bin/compress.py Behind the scenes, ``compress.py`` is a front-end for Google's diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index 51d1e61313..e0369b5800 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -30,8 +30,8 @@ Next, clone your fork, install some requirements, and run the tests:: $ git clone git@github.com:YourGitHubName/django.git django-repo $ cd django-repo/tests - $ pip install -e .. - $ pip install -r requirements/py3.txt + $ python -m pip install -e .. + $ python -m pip install -r requirements/py3.txt $ ./runtests.py Installing the requirements will likely require some operating system packages @@ -68,7 +68,7 @@ and other checks (such as :ref:`import sorting <coding-style-imports>`, the :ref:`code formatting <coding-style-python>`), install and run the ``tox`` command from any place in the Django source tree:: - $ pip install tox + $ python -m pip install tox $ tox By default, ``tox`` runs the test suite with the bundled test settings file for @@ -240,7 +240,7 @@ You can find these dependencies in `pip requirements files`_ inside the ``tests/requirements`` directory of the Django source tree and install them like so:: - $ pip install -r tests/requirements/py3.txt + $ python -m pip install -r tests/requirements/py3.txt If you encounter an error during the installation, your system might be missing a dependency for one or more of the Python packages. Consult the failing |
