Skip to content

Commit

Permalink
Source venv to install packages in it
Browse files Browse the repository at this point in the history
Encountered while setting up the "venv-debian", looks like we need it on
the other setup as well. Works well for me locally.
  • Loading branch information
Conor Schaefer committed Sep 23, 2021
1 parent 45dfc35 commit 6b1c713
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@ all: help
.PHONY: venv-debian
venv-debian: ## Provision a Python 3 virtualenv for development on a prod-like system that has installed dependencies specified in https://github.com/freedomofpress/securedrop-debian-packaging/blob/main/securedrop-client/debian/control
python3 -m venv .venv-debian --system-site-packages
.venv-debian/bin/pip install --upgrade pip wheel
.venv-debian/bin/pip install --require-hashes -r "requirements/dev-requirements-debian.txt"
. .venv-debian/bin/activate && .venv-debian/bin/pip install --upgrade pip wheel
. .venv-debian/bin/activate && .venv-debian/bin/pip install --require-hashes -r "requirements/dev-requirements-debian.txt"
@echo "#################"
@echo "Virtualenv with Debian system-packages is complete."
@echo "Make sure to install the apt packages for system Qt."
@echo "Then run: source .venv-debian/bin/activate"


.PHONY: venv
venv: ## Provision a Python 3 virtualenv for development
python3 -m venv .venv
.venv/bin/pip install --upgrade pip wheel
.venv/bin/pip install --require-hashes -r "requirements/dev-requirements.txt"
. .venv/bin/activate && .venv/bin/pip install --upgrade pip wheel
. .venv/bin/activate && .venv/bin/pip install --require-hashes -r "requirements/dev-requirements.txt"

SEMGREP_FLAGS := --exclude "tests/" --error --strict --verbose

Expand Down

0 comments on commit 6b1c713

Please sign in to comment.