FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vscode-python/scripts/onCreateCommand.sh at main · microsoft/vscode-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
microsoft
/
vscode-python
Public
forked from
DonJayamanne/pythonVSCode
Notifications
You must be signed in to change notification settings
Fork
1.4k
Star
4.6k
Code
Issues
349
Pull requests
27
Discussions
Actions
Wiki
Security and quality
2
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
vscode-python
/
scripts
/
onCreateCommand.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (26 loc) · 1.12 KB
Breadcrumbs
vscode-python
/
scripts
/
onCreateCommand.sh
Copy path
File metadata and controls
36 lines (26 loc) · 1.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!
/bin/bash
#
Install pyenv and Python versions here to avoid using shim.
curl https://pyenv.run
|
bash
echo
'
export PYENV_ROOT="$HOME/.pyenv"
'
>>
~
/.bashrc
echo
'
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
'
>>
~
/.bashrc
#
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
export
PYENV_ROOT=
"
$HOME
/.pyenv
"
command
-v pyenv
>
/dev/null
||
export
PATH=
"
$PYENV_ROOT
/bin:
$PATH
"
#
eval "$(pyenv init -)" Comment this out and DO NOT use shim.
source
~
/.bashrc
#
Install Python via pyenv .
pyenv install 3.8.18 3.9:latest 3.10:latest 3.11:latest
#
Set default Python version to 3.8 .
pyenv global 3.8.18
npm ci
#
Create Virutal environment.
pyenv
exec
python -m venv .venv
#
Activate Virtual environment.
source
/workspaces/vscode-python/.venv/bin/activate
#
Install required Python libraries.
/workspaces/vscode-python/.venv/bin/python -m pip install nox
nox --session install_python_libs
/workspaces/vscode-python/.venv/bin/python -m pip install -r build/test-requirements.txt
/workspaces/vscode-python/.venv/bin/python -m pip install -r build/functional-test-requirements.txt
#
Below will crash codespace
#
npm run compile
Back
|
FazBrowse Home
|
New Git URL