Skip to content

Commit 7e78e1e

Browse files
tobyrosemanHoyt Koepke
authored andcommitted
Enable Python3 Build on Mac and Windows
1 parent 10a4c4f commit 7e78e1e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

oss_local_scripts/install_python_toolchain.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,20 @@ fi
6161
if [[ $haspython == 0 ]]; then
6262
if [[ $OSTYPE == darwin* ]]; then
6363
if [ ! -e miniconda.sh ]; then
64-
download_file http://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh miniconda.sh
64+
if [[ ${PYTHON_VERSION} == "python3.4m" ]]; then
65+
download_file http://repo.continuum.io/miniconda/Miniconda3-3.16.0-MacOSX-x86_64.sh miniconda.sh
66+
else
67+
download_file http://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh miniconda.sh
68+
fi
6569
fi
6670
bash ./miniconda.sh -p $PWD/deps/conda -b
6771
elif [[ "$OSTYPE" == "msys" ]]; then
6872
if [ ! -e miniconda.exe ]; then
69-
download_file http://repo.continuum.io/miniconda/Miniconda-latest-Windows-x86_64.exe miniconda.exe
73+
if [[ ${PYTHON_VERSION} == "python3.4m" ]]; then
74+
download_file https://repo.continuum.io/miniconda/Miniconda3-3.16.0-Windows-x86_64.exe miniconda.exe
75+
else
76+
download_file http://repo.continuum.io/miniconda/Miniconda-latest-Windows-x86_64.exe miniconda.exe
77+
fi
7078
fi
7179
cmd /C "miniconda.exe /S /RegisterPython=0 /AddToPath=0 /D=`cygpath -w $PWD/deps/conda/bin`"
7280
mkdir -p $PWD/deps/conda/lib

0 commit comments

Comments
 (0)