mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 06:42:10 -04:00
Add set_python_envvars.sh.
This commit is contained in:
parent
80d85041f3
commit
3ef6abc951
1 changed files with 17 additions and 0 deletions
17
tests/letstest/scripts/set_python_envvars.sh
Executable file
17
tests/letstest/scripts/set_python_envvars.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
# This is a simple script that can be sourced to set Python environment
|
||||
# variables for use in Certbot's letstest test farm tests.
|
||||
|
||||
# Some distros like Fedora may only have an executable named python3 installed.
|
||||
if command -v python; then
|
||||
PYTHON_NAME="python"
|
||||
VENV_SCRIPT="tools/venv.py"
|
||||
VENV_PATH="venv"
|
||||
else
|
||||
# We could check for "python2" here, however, the addition of "python3"
|
||||
# only systems is what necessitated this change so checking for "python2"
|
||||
# isn't necessary.
|
||||
PYTHON_NAME="python3"
|
||||
VENV_PATH="venv3"
|
||||
VENV_SCRIPT="tools/venv3.py"
|
||||
fi
|
||||
Loading…
Reference in a new issue