aboutsummaryrefslogtreecommitdiff
path: root/src/python/feature.json
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-06-01 19:45:23 +0300
committerGitHub <noreply@github.com>2022-06-01 19:45:23 +0300
commit502af2c69f757af6a7b3817170c33100d2150e00 (patch)
tree7f04660580430bd95b7dfad61e595cae97e47e3a /src/python/feature.json
parentdb430a522b7c2fec9a77d6f9443a79750f7b238e (diff)
Python: Allow installing multiple versions of python (#32)
* test * add overrideDefault * fix linking bug * fix bug 2 * fix bug 3 * fix bug 4 * fix python3 * fix spacing * fix bug * fix oryx bug * add missing $ * add mkdir * fix conditions * add additional linking * add current path * fix linking * Update src/python/feature.json Co-authored-by: Josh Spicer <joshspicer@github.com> * python version check * change exit code * change exit code * remove symlinks if present * fix symlinks * nit * change PATH * fix condition * change condition * add [] Co-authored-by: Josh Spicer <joshspicer@github.com>
Diffstat (limited to 'src/python/feature.json')
-rw-r--r--src/python/feature.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/python/feature.json b/src/python/feature.json
index e481977..9f8543c 100644
--- a/src/python/feature.json
+++ b/src/python/feature.json
@@ -37,10 +37,15 @@
"type": "boolean",
"default": "true",
"description": "If links and aliases should be created."
+ },
+ "overrideDefaultVersion": {
+ "type": "boolean",
+ "default": "true",
+ "description": "If true, overrides existing version (if any) of python on the PATH"
}
},
"containerEnv": {
- "PYTHON_PATH": "/usr/local/python",
+ "PYTHON_PATH": "/usr/local/python/current",
"PIPX_HOME": "/usr/local/py-utils",
"PIPX_BIN_DIR": "/usr/local/py-utils/bin",
"PATH": "${PYTHON_PATH}/bin:${PATH}:${PIPX_BIN_DIR}"