forked from jetify-com/devbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.json
More file actions
14 lines (14 loc) · 749 Bytes
/
python.json
File metadata and controls
14 lines (14 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"name": "python",
"version": "0.0.4",
"description": "Python in Devbox works best when used with a virtual environment (venv, virtualenv, etc.). Devbox will automatically create a virtual environment using `venv` for python3 projects, so you can install packages with pip as normal.\nTo activate the environment, run `. $VENV_DIR/bin/activate` or add it to the init_hook of your devbox.json\nTo change where your virtual environment is created, modify the $VENV_DIR environment variable in your init_hook",
"env": {
"VENV_DIR": "{{ .DevboxProjectDir }}/.venv"
},
"create_files": {
"{{ .Virtenv }}/bin/venvShellHook.sh": "python/venvShellHook.sh"
},
"shell": {
"init_hook": ["{{ .Virtenv }}/bin/venvShellHook.sh"]
}
}