Skip to content

Commit

Permalink
fix: on Windows, pip needs to run as a module (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenstroeger authored May 17, 2022
1 parent 32248a4 commit 26d0919
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ setup: force-upgrade
.PHONY: upgrade
upgrade: .upgraded
.upgraded: setup.py
pip install --upgrade pip
pip install --upgrade --upgrade-strategy eager --editable .[hooks,dev,test,docs]
python -m pip install --upgrade pip
python -m pip install --upgrade --upgrade-strategy eager --editable .[hooks,dev,test,docs]
echo "Automatically generated by Python Package Makefile." > .upgraded
force-upgrade:
rm -f .upgraded
Expand All @@ -71,7 +71,7 @@ requirements: requirements.txt
requirements.txt: setup.py
echo "" > requirements.txt
# See also: https://github.com/peterbe/hashin/issues/139
for pkg in `pip list --format freeze`; do hashin --verbose $$pkg; done
for pkg in `python -m pip list --format freeze`; do hashin --verbose $$pkg; done

# Check, test, and build artifacts for this package.
.PHONY: all
Expand Down

0 comments on commit 26d0919

Please sign in to comment.