aboutsummaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-05-16 21:05:19 +0300
committerGitHub <noreply@github.com>2022-05-16 21:05:19 +0300
commita7dc1749defe3b965051877e998bfc0a664059f6 (patch)
treef68df596a9ee087a56870fc41f8b2af0ac7172c0 /src/python
parent5cf250cf2f0fc73b9d9f9189894608e1b2322dcf (diff)
python: bug fix when version = none (#14)
* python: bug fix * add missing "none" proposal * nit
Diffstat (limited to 'src/python')
-rw-r--r--src/python/feature.json1
-rw-r--r--src/python/install.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/python/feature.json b/src/python/feature.json
index da77899..e481977 100644
--- a/src/python/feature.json
+++ b/src/python/feature.json
@@ -8,6 +8,7 @@
"enum": [
"latest",
"os-provided",
+ "none",
"3.10",
"3.9",
"3.8",
diff --git a/src/python/install.sh b/src/python/install.sh
index bdfc4d8..49018af 100644
--- a/src/python/install.sh
+++ b/src/python/install.sh
@@ -322,7 +322,7 @@ chown :pipx ${PIPX_HOME} ${PIPX_BIN_DIR}
chmod g+s ${PIPX_HOME} ${PIPX_BIN_DIR}
# Update pip if not using os provided python
-if [ ${PYTHON_VERSION} != "os-provided" ] && [ ${PYTHON_VERSION} != "system" ]; then
+if [ ${PYTHON_VERSION} != "os-provided" ] && [ ${PYTHON_VERSION} != "system" ] && [ ${PYTHON_VERSION} != "none" ]; then
echo "Updating pip..."
${PYTHON_INSTALL_PATH}/bin/python3 -m pip install --no-cache-dir --upgrade pip
fi