We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175271e commit fe428b2Copy full SHA for fe428b2
install.sh
@@ -23,10 +23,16 @@ function install_python_ppa {
23
24
function install_python {
25
local py=$1
26
- apt-get install -y $py $py-dev
27
- curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | $py
28
- $py -m pip install --upgrade pip
29
- $py -m pip install --upgrade virtualenv
+ if [[ "$py" != "python3.7" ]]; then
+ apt-get install -y $py $py-dev
+ curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | $py
+ $py -m pip install --upgrade pip
30
+ $py -m pip install --upgrade virtualenv
31
+ else
32
+ # See https://discuss.circleci.com/t/install-python-3-7-in-machine-executor/25883/5
33
+ pyenv versions
34
+ pyenv global 3.7.1
35
+ fi
36
}
37
38
function init_venv {
0 commit comments