mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
24 lines
652 B
Bash
Executable file
24 lines
652 B
Bash
Executable file
#!/bin/bash -x
|
|
XDG_DATA_HOME=${XDG_DATA_HOME:-~/.local/share}
|
|
VENV_NAME="venv"
|
|
# The path to the letsencrypt-auto script. Everything that uses these might
|
|
# at some point be inlined...
|
|
LEA_PATH=./letsencrypt/
|
|
VENV_PATH=${LEA_PATH/$VENV_NAME}
|
|
VENV_BIN=${VENV_PATH}/bin
|
|
|
|
|
|
# virtualenv call is not idempotent: it overwrites pip upgraded in
|
|
# later steps, causing "ImportError: cannot import name unpack_url"
|
|
|
|
"$LEA_PATH/letsencrypt-auto" --os-packages-only
|
|
|
|
cd letsencrypt
|
|
./tools/venv.sh
|
|
PYVER=`python --version 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | sed 's/\.//'`
|
|
|
|
if [ $PYVER -eq 26 ] ; then
|
|
venv/bin/tox -e py26
|
|
else
|
|
venv/bin/tox -e py27
|
|
fi
|