summaryrefslogtreecommitdiff
path: root/features/src/python/devcontainer-feature.json
diff options
context:
space:
mode:
authorNeonXP <i@neonxp.ru>2024-01-28 20:43:11 +0300
committerNeonXP <i@neonxp.ru>2024-01-28 22:07:35 +0300
commit11412b2e720f754900b39d195f33af39ed11d085 (patch)
tree96d7e561f21809aead3c0f25034f083f46ef064c /features/src/python/devcontainer-feature.json
parent6c00916212073678bbeb3bdde3f121c4efad707a (diff)
Go теперь фича над базовым образомHEADmaster
Diffstat (limited to 'features/src/python/devcontainer-feature.json')
-rw-r--r--features/src/python/devcontainer-feature.json77
1 files changed, 77 insertions, 0 deletions
diff --git a/features/src/python/devcontainer-feature.json b/features/src/python/devcontainer-feature.json
new file mode 100644
index 0000000..4daaec1
--- /dev/null
+++ b/features/src/python/devcontainer-feature.json
@@ -0,0 +1,77 @@
+{
+ "id": "python",
+ "version": "1.3.1",
+ "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.",
+ "options": {
+ "version": {
+ "type": "string",
+ "proposals": [
+ "latest",
+ "os-provided",
+ "none",
+ "3.12",
+ "3.11",
+ "3.10",
+ "3.9",
+ "3.8",
+ "3.7",
+ "3.6"
+ ],
+ "default": "os-provided",
+ "description": "Select a Python version to install."
+ },
+ "installTools": {
+ "type": "boolean",
+ "default": true,
+ "description": "Install common Python tools like pylint"
+ },
+ "optimize": {
+ "type": "boolean",
+ "default": false,
+ "description": "Optimize Python for performance when compiled (slow)"
+ },
+ "installPath": {
+ "type": "string",
+ "default": "/usr/local/python",
+ "description": "The path where python will be installed."
+ },
+ "installJupyterlab": {
+ "type": "boolean",
+ "default": false,
+ "description": "Install JupyterLab, a web-based interactive development environment for notebooks"
+ },
+ "configureJupyterlabAllowOrigin": {
+ "type": "string",
+ "default": "",
+ "description": "Configure JupyterLab to accept HTTP requests from the specified origin"
+ },
+ "httpProxy": {
+ "type": "string",
+ "default": "",
+ "description": "Connect to GPG keyservers using a proxy for fetching source code signatures by configuring this option"
+ }
+ },
+ "containerEnv": {
+ "PYTHON_PATH": "/usr/local/python/current",
+ "PIPX_HOME": "/usr/local/py-utils",
+ "PIPX_BIN_DIR": "/usr/local/py-utils/bin",
+ "PATH": "/usr/local/python/current/bin:/usr/local/py-utils/bin:${PATH}"
+ },
+ "customizations": {
+ "vscode": {
+ "extensions": [
+ "ms-python.python",
+ "ms-python.vscode-pylance"
+ ],
+ "settings": {
+ "python.defaultInterpreterPath": "/usr/local/python/current/bin/python"
+ }
+ }
+ },
+ "installsAfter": [
+ "https://gitrepo.ru/api/packages/NeonXP/generic/features/latest/devcontainer-feature-common-utils.tgz",
+ "ghcr.io/devcontainers/features/oryx"
+ ]
+}