mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 22:33:00 -04:00
* If there's no python or there's only python2.6 on red hat systems, install python3 * Always check for python2.6 * address style, documentation, nits * factor out all initialization code * fix up python version return value when no python installed * add no python error and exit * document DeterminePythonVersion parameters * build letsencrypt-auto * close brace * build leauto * fix syntax errors * set USE_PYTHON_3 for all cases * rip out NOCRASH * replace NOCRASH, update LE_PYTHON set logic * use built-in venv for py3 * switch to LE_PYTHON not affecting bootstrap selection and not overwriting LE_PYTHON * python3ify fetch.py * get fetch.py working with python2 and 3 * don't verify server certificates in fetch.py HttpsGetter * Use SSLContext and an environment variable so that our tests continue to never verify server certificates. * typo * build * remove commented out code * address review comments * add documentation for YES_FLAG and QUIET_FLAG * Add tests to centos6 Dockerfile to make sure we install python3 if and only if appropriate to do so.
45 lines
1.2 KiB
Bash
Executable file
45 lines
1.2 KiB
Bash
Executable file
# If new packages are installed by BootstrapRpmCommon below, this version
|
|
# number must be increased.
|
|
BOOTSTRAP_RPM_COMMON_VERSION=1
|
|
|
|
BootstrapRpmCommon() {
|
|
# Tested with:
|
|
# - Fedora 20, 21, 22, 23 (x64)
|
|
# - Centos 7 (x64: on DigitalOcean droplet)
|
|
# - CentOS 7 Minimal install in a Hyper-V VM
|
|
# - CentOS 6
|
|
|
|
InitializeRPMCommonBase
|
|
|
|
# Most RPM distros use the "python" or "python-" naming convention. Let's try that first.
|
|
if $TOOL list python >/dev/null 2>&1; then
|
|
python_pkgs="$python
|
|
python-devel
|
|
python-virtualenv
|
|
python-tools
|
|
python-pip
|
|
"
|
|
# Fedora 26 starts to use the prefix python2 for python2 based packages.
|
|
# this elseif is theoretically for any Fedora over version 26:
|
|
elif $TOOL list python2 >/dev/null 2>&1; then
|
|
python_pkgs="$python2
|
|
python2-libs
|
|
python2-setuptools
|
|
python2-devel
|
|
python2-virtualenv
|
|
python2-tools
|
|
python2-pip
|
|
"
|
|
# Some distros and older versions of current distros use a "python27"
|
|
# instead of the "python" or "python-" naming convention.
|
|
else
|
|
python_pkgs="$python27
|
|
python27-devel
|
|
python27-virtualenv
|
|
python27-tools
|
|
python27-pip
|
|
"
|
|
fi
|
|
|
|
BootstrapRpmCommonBase "$python_pkgs"
|
|
}
|