Skip to content

Commit 6bdf8f0

Browse files
committed
macos: Do not install pip with Python 3
1 parent e6dfad5 commit 6bdf8f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/macpython-install-python.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ WORKING_SDIR=working
4949
LATEST_2p7=2.7.18
5050
LATEST_3p5=3.5.4
5151
LATEST_3p6=3.6.8
52-
LATEST_3p7=3.7.9
52+
LATEST_3p7=3.7.6
5353
LATEST_3p8=3.8.6
5454
LATEST_3p9=3.9.0
5555

@@ -319,11 +319,10 @@ function install_mac_cpython {
319319
# sets $PYTHON_EXE variable to Python executable
320320
local py_version=$(fill_pyver $1)
321321
local py_osx_ver=$2
322-
local py_stripped=$(strip_ver_suffix $py_version)
323322
local py_inst=$(pyinst_fname_for_version $py_version $py_osx_ver)
324323
local inst_path=$DOWNLOADS_SDIR/$py_inst
325324
mkdir -p $DOWNLOADS_SDIR
326-
curl $MACPYTHON_URL/$py_stripped/${py_inst} > $inst_path
325+
curl $MACPYTHON_URL/$py_version/${py_inst} > $inst_path
327326
if [ "${py_inst: -3}" == "dmg" ]; then
328327
hdiutil attach $inst_path -mountpoint /Volumes/Python
329328
inst_path=/Volumes/Python/Python.mpkg
@@ -336,6 +335,9 @@ function install_mac_cpython {
336335
if [ -e "$inst_cmd" ]; then
337336
sh "$inst_cmd"
338337
fi
338+
PIP_CMD="$MACPYTHON_PY_PREFIX/$py_mm/bin/python$py_mm -m pip"
339+
$PIP_CMD install --upgrade pip
340+
export PIP_CMD
339341
}
340342

341343
function install_virtualenv {
@@ -372,12 +374,10 @@ sudo rm -rf ${MACPYTHON_FRAMEWORK}
372374

373375
for pyversion in $LATEST_3p5 $LATEST_3p6 $LATEST_3p7; do
374376
install_macpython $pyversion 10.6
375-
install_pip
376377
install_virtualenv
377378
done
378379

379380
for pyversion in $LATEST_3p8 $LATEST_3p9; do
380381
install_macpython $pyversion 10.9
381-
install_pip
382382
install_virtualenv
383383
done

0 commit comments

Comments
 (0)