aboutsummaryrefslogblamecommitdiff
path: root/src/python/devcontainer-feature.json
blob: a954c3511ef56f5119782ff90a45a6aee538b8b9 (plain) (tree)
1
2
3
4
5
6
7
8
9

                 
                      
                   
                                                                                       
                                                                                                                                                                                                                           


                       
                    

                      
               
               





               


                                                          
                     








                                                                           
                    



                                                               
                          



                                                                                                        
                                       


                                                                                             


                   
                                               

                                              
                                                                           
    






                                  
                                                                                

                                                                             
                                                                      
                                              
                                                                  


                                                                      

       

                    

                                                    
   
 
{
  "id": "python",
  "version": "1.0.22",
  "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.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"
    }
  },
  "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",
        "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
        "python.formatting.blackPath": "/usr/local/py-utils/bin/black",
        "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
        "python.linting.flake8Enabled": false,
        "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
        "python.linting.mypyEnabled": false,
        "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
        "python.linting.pylintEnabled": false
      }
    }
  },
  "installsAfter": [
      "ghcr.io/devcontainers/features/common-utils",
      "ghcr.io/devcontainers/features/oryx"
  ]
}