diff options
author | Brad Warren <bmw@users.noreply.github.com> | 2017-11-08 21:58:00 +0300 |
---|---|---|
committer | ohemorange <ebportnoy@gmail.com> | 2017-11-08 21:58:00 +0300 |
commit | 686fa36b3b8eea3ed8859c6af9d0acd7ee9b8978 (patch) | |
tree | c14a88f5b37ed5d0349bc5e4f2a234ae9fe37fde /tools/pip_install.sh | |
parent | 884fc56a3e6dba4f183f54aba17e5c9e0c694f14 (diff) |
Install dnsmadeeasy extras from dns-lexicon (#5230)
* Add tools/pip_constraints.txt to pin all Python dependencies
* Use tools/pip_constraints.txt in tools/pip_install.sh
* Install dnsmadeeasy extras in dnsmadeeasy plugin
Diffstat (limited to 'tools/pip_install.sh')
-rwxr-xr-x | tools/pip_install.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/pip_install.sh b/tools/pip_install.sh index 438e567e4..194501c7d 100755 --- a/tools/pip_install.sh +++ b/tools/pip_install.sh @@ -1,14 +1,15 @@ #!/bin/sh -e -# pip installs packages using Certbot's requirements file as constraints +# pip installs packages using pinned package versions # get the root of the Certbot repo my_path=$("$(dirname $0)/readlink.py" $0) repo_root=$(dirname $(dirname $my_path)) requirements="$repo_root/letsencrypt-auto-source/pieces/dependency-requirements.txt" -constraints=$(mktemp) -trap "rm -f $constraints" EXIT +certbot_auto_constraints=$(mktemp) +trap "rm -f $certbot_auto_constraints" EXIT # extract pinned requirements without hashes -sed -n -e 's/^\([^[:space:]]*==[^[:space:]]*\).*$/\1/p' $requirements > $constraints +sed -n -e 's/^\([^[:space:]]*==[^[:space:]]*\).*$/\1/p' $requirements > $certbot_auto_constraints +dev_constraints="$(dirname $my_path)/pip_constraints.txt" # install the requested packages using the pinned requirements as constraints -pip install --constraint $constraints "$@" +pip install --constraint $certbot_auto_constraints --constraint $dev_constraints "$@" |