aboutsummaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-08-11 21:37:10 +0300
committerGitHub <noreply@github.com>2022-08-11 21:37:10 +0300
commit44694d699fd715edeeb9fcea9271b09c39b5ac35 (patch)
tree3a89d5c06276b9721661d2b13fc37a2e87aa85a7 /src/python
parentaecf2ad152a75663211a2ac0926e6122c2b0b07f (diff)
Options: Follow camelCase (#89)
rename Options
Diffstat (limited to 'src/python')
-rw-r--r--src/python/devcontainer-feature.json13
-rwxr-xr-xsrc/python/install.sh10
2 files changed, 9 insertions, 14 deletions
diff --git a/src/python/devcontainer-feature.json b/src/python/devcontainer-feature.json
index db13b78..5ca1144 100644
--- a/src/python/devcontainer-feature.json
+++ b/src/python/devcontainer-feature.json
@@ -1,6 +1,6 @@
{
"id": "python",
- "version": "1.0.0",
+ "version": "1.0.1",
"name": "Python",
"description": "Installs the provided version of Python, as well as PIPX, and other common Python utilities. JupyterLab is conditionally installed with the python feature. Note: May require source code compilation.",
"options": {
@@ -19,7 +19,7 @@
"default": "os-provided",
"description": "Select a Python version to install."
},
- "install_python_tools": {
+ "installTools": {
"type": "boolean",
"default": true,
"description": "Install common Python tools like pylint"
@@ -34,17 +34,12 @@
"default": "/usr/local/python",
"description": "The path where python will be installed."
},
- "override_default_version": {
- "type": "boolean",
- "default": "true",
- "description": "If true, overrides existing version (if any) of python on the PATH"
- },
- "install_jupyterlab": {
+ "installJupyterlab": {
"type": "boolean",
"default": false,
"description": "Install JupyterLab, a web-based interactive development environment for notebooks"
},
- "configure_jupyterlab_allow_origin": {
+ "configureJupyterlabAllowOrigin": {
"type": "string",
"default": "",
"description": "Configure JupyterLab to accept HTTP requests from the specified origin"
diff --git a/src/python/install.sh b/src/python/install.sh
index 6c57b34..e9f95c6 100755
--- a/src/python/install.sh
+++ b/src/python/install.sh
@@ -8,10 +8,10 @@
# Maintainer: The VS Code and Codespaces Teams
PYTHON_VERSION=${VERSION:-"latest"} # 'system' checks the base image first, else installs 'latest'
-INSTALL_PYTHON_TOOLS=${INSTALL_PYTHON_TOOLS:-"true"}
+INSTALL_PYTHON_TOOLS=${INSTALLTOOLS:-"true"}
OPTIMIZE_BUILD_FROM_SOURCE=${OPTIMIZE:-"false"}
PYTHON_INSTALL_PATH=${INSTALL_PATH:-"/usr/local/python"}
-OVERRIDE_DEFAULT_VERSION=${OVERRIDE_DEFAULT_VERSION:-"true"}
+OVERRIDE_DEFAULT_VERSION=${OVERRIDEDEFAULTVERSION:-"true"}
export PIPX_HOME=${PIPX_HOME:-"/usr/local/py-utils"}
@@ -19,12 +19,12 @@ USERNAME=${USERNAME:-"automatic"}
UPDATE_RC=${UPDATE_RC:-"true"}
USE_ORYX_IF_AVAILABLE=${USE_ORYX_IF_AVAILABLE:-"true"}
-INSTALL_JUPYTERLAB=${INSTALL_JUPYTERLAB:-"false"}
-CONFIGURE_JUPYTERLAB_ALLOW_ORIGIN=${CONFIGURE_JUPYTERLAB_ALLOW_ORIGIN:-""}
+INSTALL_JUPYTERLAB=${INSTALLJUPYTERLAB:-"false"}
+CONFIGURE_JUPYTERLAB_ALLOW_ORIGIN=${CONFIGUREJUPYTERLABALLOWORIGIN:-""}
# Comma-separated list of python versions to be installed
# alongside PYTHON_VERSION, but not set as default.
-ADDITIONAL_VERSIONS=${ADDITIONAL_VERSIONS:-""}
+ADDITIONAL_VERSIONS=${ADDITIONALVERSIONS:-""}
DEFAULT_UTILS=("pylint" "flake8" "autopep8" "black" "yapf" "mypy" "pydocstyle" "pycodestyle" "bandit" "pipenv" "virtualenv")
PYTHON_SOURCE_GPG_KEYS="64E628F8D684696D B26995E310250568 2D347EA6AA65421D FB9921286F5E1540 3A5CA953F73C700D 04C367C218ADD4FF 0EDDC5F26A45C816 6AF053F07D9DC8D2 C9BE28DEE6DF025C 126EB563A74B06BF D9866941EA5BBD71 ED9D77D5"