aboutsummaryrefslogtreecommitdiff
path: root/src/python/feature.json
diff options
context:
space:
mode:
authorJosh Spicer <josh@joshspicer.com>2022-05-12 23:10:51 +0300
committerGitHub <noreply@github.com>2022-05-12 23:10:51 +0300
commit3a277ad757dbc51a43a5dd452d030c67a49d49f1 (patch)
tree7d4f27493f946d8792b2ff5b6383258cb9f03ce0 /src/python/feature.json
parent2707a37ca0d4a45c7487f856bf95f8c5e10bce94 (diff)
restructure and update cli (#11)
* restructure and update cli * typo
Diffstat (limited to 'src/python/feature.json')
-rw-r--r--src/python/feature.json56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/python/feature.json b/src/python/feature.json
new file mode 100644
index 0000000..18728f3
--- /dev/null
+++ b/src/python/feature.json
@@ -0,0 +1,56 @@
+{
+ "id": "python",
+ "name": "Python (may require compilation)",
+ "description": "Python (may require compilation)",
+ "options": {
+ "version": {
+ "type": "string",
+ "enum": ["latest", "os-provided", "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)"
+ },
+ "install_path": {
+ "type": "string",
+ "default": "/usr/local/python",
+ "description": "The path where python will be installed."
+ },
+ "setup_links": {
+ "type": "boolean",
+ "default": "true",
+ "description": "If links and aliases should be created."
+ }
+ },
+ "containerEnv": {
+ "PYTHON_PATH": "/usr/local/python",
+ "PIPX_HOME": "/usr/local/py-utils",
+ "PIPX_BIN_DIR": "/usr/local/py-utils/bin",
+ "PATH": "${PYTHON_PATH}/bin:${PATH}:${PIPX_BIN_DIR}"
+ },
+ "extensions": ["ms-python.python", "ms-python.vscode-pylance"],
+ "settings": {
+ "python.defaultInterpreterPath": "/usr/local/bin/python",
+ "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
+ "python.formatting.blackPath": "/usr/local/py-utils/bin/black",
+ "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
+ "python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
+ "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
+ "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
+ "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
+ "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
+ "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
+ },
+ "install": {
+ "app": "",
+ "file": "install.sh"
+ }
+}