Skip to content

Commit c5e8c16

Browse files
author
fbeitler
committed
Add python3 prefix before pip3
1 parent c9c4768 commit c5e8c16

File tree

15 files changed

+36
-36
lines changed

15 files changed

+36
-36
lines changed

.github/pythonpackage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
python-version: '3.x'
1616
- name: Install dependencies
1717
run: |
18-
python3 -m pip3 install --upgrade pip3
19-
pip3 install setuptools wheel twine
18+
python3 -m pip3 install --upgrade pip3
19+
python3 -m pip3 install setuptools wheel twine
2020
- name: Build and publish
2121
env:
2222
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

.github/pythonpublish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install dependencies
1717
run: |
1818
python3 -m pip3 install --upgrade pip3
19-
pip3 install setuptools wheel twine
19+
python3 -m pip3 install setuptools wheel twine
2020
- name: Build and publish
2121
env:
2222
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ jobs:
117117
architecture: '${{ matrix.arch.action }}'
118118
- name: Install
119119
run: |
120-
pip3 install --upgrade pip3 setuptools wheel
121-
pip3 install --upgrade tox
120+
python3 -m pip3 install --upgrade pip3 setuptools wheel
121+
python3 -m pip3 install --upgrade tox
122122
- uses: twisted/python-info-action@v1.0.1
123123
- name: Add PyPy Externals
124124
if: ${{ matrix.os.matrix == 'windows' && matrix.python.implementation == 'pypy'}}
@@ -204,8 +204,8 @@ jobs:
204204
fetch-depth: 0
205205
- name: Install
206206
run: |
207-
pip3 install --upgrade pip3 setuptools wheel
208-
pip3 install --upgrade tox
207+
python3 -m pip3 install --upgrade pip3 setuptools wheel
208+
python3 -m pip3 install --upgrade tox
209209
- uses: twisted/python-info-action@v1.0.1
210210
- name: Test
211211
continue-on-error: ${{ matrix.task.continue_on_error == true }}
@@ -251,9 +251,9 @@ jobs:
251251
fetch-depth: 0
252252
- name: Install
253253
run: |
254-
pip3 install --upgrade pip3 setuptools wheel
255-
pip3 install --upgrade tox
256-
pip3 install --upgrade six
254+
python3 -m pip3 install --upgrade pip3 setuptools wheel
255+
python3 -m pip3 install --upgrade tox
256+
python3 -m pip3 install --upgrade six
257257
- uses: twisted/python-info-action@v1.0.1
258258
- name: Download Coverage
259259
if: matrix.task.download_coverage

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,40 @@ install:
2525
@test -d "$(VIRTUAL_ENV)" || mkdir -p "$(VIRTUAL_ENV)"
2626
@test -x "$(VIRTUAL_ENV)/bin/python3" || virtualenv --quiet "$(VIRTUAL_ENV)"
2727
@test -x "$(VIRTUAL_ENV)/bin/pip3" || easy_install pip
28-
@pip3 install --upgrade --quiet --requirement=requirements.txt
29-
@pip3 uninstall --yes pymodbus &>/dev/null || true
30-
@pip3 install --quiet --no-deps --ignore-installed .
28+
@python3 -m pip3 install --upgrade --quiet --requirement=requirements.txt
29+
@python3 -m pip3 uninstall --yes pymodbus &>/dev/null || true
30+
@python3 -m pip3 install --quiet --no-deps --ignore-installed .
3131

3232
reset:
3333
$(MAKE) clean
3434
rm -Rf "$(VIRTUAL_ENV)"
3535
$(MAKE) install
3636

3737
check: install
38-
@pip3 install --upgrade --quiet --requirement=requirements-checks.txt
38+
@python3 -m pip3 install --upgrade --quiet --requirement=requirements-checks.txt
3939
@flake8
4040

4141

4242
test: install
43-
@pip3 install --upgrade --quiet --requirement=requirements-tests.txt
43+
@python3 -m pip3 install --upgrade --quiet --requirement=requirements-tests.txt
4444

4545
$(info Running tests on $(PYVER))
46-
@pip3 install --upgrade pip3 --quiet
46+
@python3 -m pip3 install --upgrade pip3 --quiet
4747
@pytest --cov=pymodbus/ --cov-report term-missing test
4848
@coverage report --fail-under=85 -i
4949

5050

5151
tox: install
52-
@pip3 install --upgrade --quiet tox && tox
52+
@python3 -m pip3 install --upgrade --quiet tox && tox
5353

5454
docs: install
55-
@pip3 install --upgrade --quiet --requirement=requirements-docs.txt
55+
@python3 -m pip3 install --upgrade --quiet --requirement=requirements-docs.txt
5656
@cd doc && make clean && make html
5757

5858
publish: install
5959
git push origin && git push --tags origin
6060
$(MAKE) clean
61-
pip3 install --quiet twine wheel
61+
python3 -m pip3 install --quiet twine wheel
6262
python3 setup.py sdist bdist_wheel
6363
twine upload dist/*
6464
$(MAKE) clean

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,19 @@ commands in a terminal window (make sure you have correct
141141
permissions or a virtualenv currently running)::
142142

143143
easy_install -U pymodbus
144-
pip3 install -U pymodbus
144+
python3 -m pip3 install -U pymodbus
145145

146146
To Install pymodbus with twisted support run::
147147

148-
pip3 install -U pymodbus[twisted]
148+
python3 -m pip3 install -U pymodbus[twisted]
149149

150150
To Install pymodbus with tornado support run::
151151

152-
pip3 install -U pymodbus[tornado]
152+
python3 -m pip3 install -U pymodbus[tornado]
153153

154154
To Install pymodbus REPL::
155155

156-
pip3 install -U pymodbus[repl]
156+
python3 -m pip3 install -U pymodbus[repl]
157157

158158
Otherwise you can pull the trunk source and install from there::
159159

doc/INSTALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Installation
1818

1919
To install the package from pypi, use either easy_install or pip3::
2020

21-
pip3 install -U pymodbus
21+
python3 -m pip3 install -U pymodbus
2222
easy_install -U pymodbus
2323

2424
As with other Python packages, the standard way of installing from source

doc/source/library/REPL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Depends on [prompt_toolkit](https://python-prompt-toolkit.readthedocs.io/en/stab
66

77
Install dependencies
88
```
9-
$ pip3 install click prompt_toolkit --upgrade
9+
$ python3 -m pip3 install click prompt_toolkit --upgrade
1010
```
1111

1212
Or
1313
Install pymodbus with repl support
1414
```
15-
$ pip3 install pymodbus[repl] --upgrade
15+
$ python3 -m pip3 install pymodbus[repl] --upgrade
1616
```
1717

1818
## Usage Instructions

examples/contrib/concurrent_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# we are using the future from the concurrent.futures released with
1919
# python3. Alternatively we will try the backported library::
20-
# pip3 install futures
20+
# python3 -m pip3 install futures
2121
try:
2222
from concurrent.futures import Future
2323
except ImportError:

examples/contrib/libmodbus_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
For these to work, you must have `cffi` and `libmodbus-dev` installed:
2323
2424
sudo apt-get install libmodbus-dev
25-
pip3 install cffi
25+
python3 -m pip3 install cffi
2626
"""
2727
# -------------------------------------------------------------------------- #
2828
# import system libraries

examples/tools/test_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PACKAGE="pymodbus"
1111
# preflight tests
1212
# ------------------------------------------------------------------ #
1313
if [[ "`which pip`" != "" ]]; then
14-
INSTALL="pip3 install -qU"
14+
INSTALL="python3 -m pip3 install -qU"
1515
elif [[ "`which easy_install`" != "" ]]; then
1616
INSTALL="easy_install -qU"
1717
else

0 commit comments

Comments
 (0)