Skip to content

Commit

Permalink
Merge pull request #5877 from freedomofpress/5876-resolve-setuptools-…
Browse files Browse the repository at this point in the history
…scm-problems

Pre-install setuptools-scm <6 in venv
  • Loading branch information
zenmonkeykstop committed Mar 22, 2021
2 parents f81b937 + 68e7e9c commit 185bd55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---

- name: Install SecureDrop Python requirements in virtualenv for translation work
shell: |
python3 -m venv /tmp/securedrop-app-code-i18n-ve
shell: >
set -e &&
python3 -m venv /tmp/securedrop-app-code-i18n-ve &&
/tmp/securedrop-app-code-i18n-ve/bin/pip3 install "setuptools-scm==5.0.2" &&
/tmp/securedrop-app-code-i18n-ve/bin/pip3 install --no-deps --no-binary :all: --require-hashes -r {{ securedrop_app_code_prep_dir }}/requirements.txt
tags:
- pip
Expand Down
1 change: 1 addition & 0 deletions install_files/securedrop-app-code/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ override_dh_virtualenv:
dh_virtualenv \
--python=/usr/bin/python3 \
--builtin-venv \
--preinstall setuptools-scm==5.0.2 \
--extra-pip-arg "--verbose" \
--extra-pip-arg "--no-deps" \
--extra-pip-arg "--no-binary=:all:" \
Expand Down

0 comments on commit 185bd55

Please sign in to comment.