mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Upgrade pip
This commit is contained in:
@@ -25,6 +25,14 @@ commands:
|
|||||||
command: |
|
command: |
|
||||||
apt-get update --yes && apt-get install --yes python3 python3-venv git make
|
apt-get update --yes && apt-get install --yes python3 python3-venv git make
|
||||||
|
|
||||||
|
upgrade_pip:
|
||||||
|
description: Upgrade the pip version to 20.0.*
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: upgrade pip
|
||||||
|
command: |
|
||||||
|
python3 -m pip install -U pip==20.0.*
|
||||||
|
|
||||||
build_systemd_image:
|
build_systemd_image:
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
@@ -116,6 +124,9 @@ jobs:
|
|||||||
- v1-dependencies-py3.6-
|
- v1-dependencies-py3.6-
|
||||||
|
|
||||||
- setup_venv
|
- setup_venv
|
||||||
|
|
||||||
|
- upgrade_pip
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: install dependencies
|
name: install dependencies
|
||||||
command: |
|
command: |
|
||||||
@@ -211,6 +222,7 @@ jobs:
|
|||||||
key: v1-dependencies-py3.6-sphinx
|
key: v1-dependencies-py3.6-sphinx
|
||||||
|
|
||||||
- setup_venv
|
- setup_venv
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: install dependencies
|
name: install dependencies
|
||||||
command: |
|
command: |
|
||||||
|
|||||||
@@ -153,6 +153,15 @@ def main():
|
|||||||
'git+https://github.com/jupyterhub/the-littlest-jupyterhub.git'
|
'git+https://github.com/jupyterhub/the-littlest-jupyterhub.git'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Upgrade pip
|
||||||
|
run_subprocess([
|
||||||
|
os.path.join(hub_prefix, 'bin', 'pip'),
|
||||||
|
'install',
|
||||||
|
'--upgrade',
|
||||||
|
'pip==20.0.*'
|
||||||
|
])
|
||||||
|
logger.info('Upgraded pip')
|
||||||
|
|
||||||
run_subprocess([
|
run_subprocess([
|
||||||
os.path.join(hub_prefix, 'bin', 'pip'),
|
os.path.join(hub_prefix, 'bin', 'pip'),
|
||||||
'install'
|
'install'
|
||||||
|
|||||||
Reference in New Issue
Block a user