Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #435 from sifive/pip-path
Browse files Browse the repository at this point in the history
Python3 pip call in venv
  • Loading branch information
nategraff-sifive authored Mar 10, 2020
2 parents 6d59db6 + 01d2541 commit e61b56a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/virtualenv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ virtualenv: venv/.stamp
# from the Python Package Index by running `make virtualenv-from-pypi`

.PHONY: virtualenv-from-pypi

# invoke python3 pip in order to bypass 127 character limit in shebang
virtualenv-from-pypi: venv/bin/activate requirements.txt
. $< && pip install --upgrade pip
. $< && pip install -r requirements.txt
. $< && venv/bin/python3 venv/bin/pip install --upgrade pip
. $< && venv/bin/python3 venv/bin/pip install -r requirements.txt

venv/.stamp: venv/bin/activate requirements.txt
. $< && pip install --no-index --find-links pip-cache --upgrade pip
. $< && pip install --no-index --find-links pip-cache -r requirements.txt
. $< && venv/bin/python3 venv/bin/pip install --no-index --find-links pip-cache --upgrade pip
. $< && venv/bin/python3 venv/bin/pip install --no-index --find-links pip-cache -r requirements.txt
touch $@

venv/bin/activate:
Expand Down

0 comments on commit e61b56a

Please sign in to comment.