Skip to content

Commit 913c62a

Browse files
authored
Switch 'pip install' for 'python -m pip install' (#617)
As per [Brett Cannon's article](https://snarky.ca/why-you-should-use-python-m-pip/).
1 parent 1b033da commit 913c62a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ env:
3333

3434
before_script: .travis/before_script.sh
3535

36-
install: pip install coveralls tox-travis
36+
install: python -m pip install coveralls tox-travis
3737

3838
script:
3939
- coverage erase

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Ready to contribute? Here's how to set up Django-MySQL for local development.
105105

106106
.. code-block:: sh
107107
108-
$ pip install tox
108+
$ python -m pip install tox
109109
$ tox -e py36-django21
110110
111111
The ``tox.ini`` file defines a large number of test environments, for

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Install it with **pip**:
1919

2020
.. code-block:: console
2121
22-
$ pip install django-mysql
22+
$ python -m pip install django-mysql
2323
2424
Or add it to your project's ``requirements.txt``.
2525

docs/model_fields/dynamic_field.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ to pack and unpack Dynamic Columns blobs in Python rather than in MariaDB
4444
To use this field, you'll need to:
4545

4646
1. Use MariaDB 10.0.2+
47-
2. Install ``mariadb-dyncol`` (``pip install mariadb-dyncol``)
47+
2. Install ``mariadb-dyncol`` (``python -m pip install mariadb-dyncol``)
4848
3. Use either the ``utf8mb4`` or ``utf8`` character set for your
4949
database connection.
5050

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ passenv =
1313
DB_PASSWORD
1414
DB_HOST
1515
DB_PORT
16-
install_command = pip install --no-deps {opts} {packages} --no-cache-dir
16+
install_command = python -m pip install --no-deps {opts} {packages} --no-cache-dir
1717
commands = coverage run --parallel -m pytest {posargs}
1818

1919
[testenv:py35-django111]

0 commit comments

Comments
 (0)