Skip to content

Commit ce0b930

Browse files
authored
Update local venv creation to avoid a bug in pip (#399)
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.
2 parents 3ccf1c5 + 3cdf787 commit ce0b930

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mk/setup.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ build:
131131
venv:
132132
@echo ">Creating venv for local development environment"
133133
python3.9 -m venv venv
134-
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')
134+
# --no-deps is a workaround to https://github.com/pypa/pip/issues/9644, see tox.ini for more info
135+
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
135136

136137

137138
#***********************************

0 commit comments

Comments
 (0)