python's venv now updates pip setuptools
This commit is contained in:
parent
4286fc8a20
commit
d890e88f16
@ -39,16 +39,15 @@ enable_venv(){
|
||||
|
||||
case "$1" in
|
||||
i|-i|install|--install)
|
||||
python -m venv "$VENV_PATH"
|
||||
mkdir -p "$JUPYTER_ROOT_PATH"/{settings,workspace,config,runtime,data} "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/{notebook-extension,extensionmanager-extension,apputils-extension}
|
||||
python -m venv --upgrade-deps "$VENV_PATH"
|
||||
# Setting it to zero doesn't have the expected result, therefore, let's set it to an abnormally large number.
|
||||
echo '{ "maxNumberOutputs": 10000000000 }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/notebook-extension/tracker.jupyterlab-settings
|
||||
echo '{ "disclaimed": true }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/extensionmanager-extension/plugin.jupyterlab-settings
|
||||
echo '{ "theme": "JupyterLab Dark" }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/apputils-extension/themes.jupyterlab-settings
|
||||
echo '{ "fetchNews": "false" }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/apputils-extension/notification.jupyterlab-settings
|
||||
enable_venv "$2"
|
||||
python -m pip install --timeout 120 --retries 10000000000 -U pip setuptools
|
||||
pip install --timeout 120 --retries 10000000000 -r requirements.txt
|
||||
pip install --timeout 120 --retries 1000000000000 -r requirements.txt
|
||||
;;
|
||||
|
||||
k|-k|kernel|--kernel)
|
||||
|
Loading…
x
Reference in New Issue
Block a user