Skip to content

Commit

Permalink
Merge pull request #483 from truenas/fix-makefile-pip
Browse files Browse the repository at this point in the history
NAS-123615 / 24.04 / Fix makefile not able to setup virtualenv
  • Loading branch information
sonicaj authored Aug 18, 2023
2 parents 9c1eff3 + a305d26 commit 99012b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ check:
ifneq ($(REPO_CHANGED),0)
@echo "Setting up new virtual environment"
@rm -rf venv-*
@${PYTHON} -m pip install -U virtualenv >/dev/null || { echo "Failed to install/upgrade virtualenv package"; exit 1; }
@${PYTHON} -m pip install --break-system-packages -U virtualenv >/dev/null || { echo "Failed to install/upgrade virtualenv package"; exit 1; }
@${PYTHON} -m venv venv-${COMMIT_HASH} || { echo "Failed to create virutal environment"; exit 1; }
@{ . ./venv-${COMMIT_HASH}/bin/activate && \
python3 -m pip install -r requirements.txt >/dev/null 2>&1 && \
Expand Down

0 comments on commit 99012b3

Please sign in to comment.