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 ead3530 commit 39b1be6Copy full SHA for 39b1be6
bootstrap.sh
@@ -88,16 +88,13 @@ fi
88
export PIP_USER=0
89
90
# Check if ensurepip is installed
91
-$python -m ensurepip --version &> /dev/null
92
-epip=$?
93
-
94
-export PATH=$(pwd)/external/usr/bin:$PATH
95
96
-# Install pip for Python 3
97
-if [ $epip -eq 0 ]; then
+if $python -m ensurepip --version &> /dev/null; then
+ # Install pip for Python 3
98
CMD $python -m ensurepip --root $(pwd)/external/ --default-pip
99
fi
100
+export PATH=$(pwd)/external/usr/bin:$PATH
+
101
# ensurepip installs pip in `external/usr/` whereas the `--root` option installs
102
# everything under `external/`. That's why we include both in the PYTHONPATH
103
0 commit comments