Skip to content

Commit

Permalink
Update local venv creation to avoid a bug in pip (#399)
Browse files Browse the repository at this point in the history
This PR fixes an error while creating a local venv due to a bug in pip.
It is also a follow-up to the second commit in #393.
For more info, see pypa/pip#9644.
  • Loading branch information
jobselko authored Dec 7, 2023
2 parents 3ccf1c5 + 3cdf787 commit ce0b930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mk/setup.mk
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ build:
venv:
@echo ">Creating venv for local development environment"
python3.9 -m venv venv
source venv/bin/activate && pip install wheel && pip install -r requirements.txt -r devel-requirements.txt $$([ -f local-requirements.txt ] && echo '-r local-requirements.txt')
# --no-deps is a workaround to https://github.com/pypa/pip/issues/9644, see tox.ini for more info
source venv/bin/activate && pip install wheel && pip install -r requirements.txt -r devel-requirements.txt $$([ -f local-requirements.txt ] && echo '-r local-requirements.txt') --no-deps


#***********************************
Expand Down

0 comments on commit ce0b930

Please sign in to comment.