aboutsummaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-11-24 01:21:26 +0300
committerSamruddhi Khandale <skhandale@microsoft.com>2022-11-24 01:21:26 +0300
commitc8383b60e06c5f46bbd8254781842d4e077034fe (patch)
tree3cea04c37f608dd254597ef81dcef67c410cb821 /src/python
parent188f1ef26bc8fa942d552dfaa8596091a8a39126 (diff)
Features: Set USERNAME to _REMOTE_USER if available
Diffstat (limited to 'src/python')
-rw-r--r--src/python/devcontainer-feature.json2
-rwxr-xr-xsrc/python/install.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/python/devcontainer-feature.json b/src/python/devcontainer-feature.json
index b96511b..ca474ab 100644
--- a/src/python/devcontainer-feature.json
+++ b/src/python/devcontainer-feature.json
@@ -1,6 +1,6 @@
{
"id": "python",
- "version": "1.0.15",
+ "version": "1.0.16",
"name": "Python",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/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.",
diff --git a/src/python/install.sh b/src/python/install.sh
index d823cc9..2c4792a 100755
--- a/src/python/install.sh
+++ b/src/python/install.sh
@@ -15,7 +15,7 @@ OVERRIDE_DEFAULT_VERSION=${OVERRIDEDEFAULTVERSION:-"true"}
export PIPX_HOME=${PIPX_HOME:-"/usr/local/py-utils"}
-USERNAME=${USERNAME:-"automatic"}
+USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"
UPDATE_RC=${UPDATE_RC:-"true"}
USE_ORYX_IF_AVAILABLE=${USEORYXIFAVAILABLE:-"true"}