mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Make TLJH_BOOTSTRAP_DEV take effect for reals
This commit is contained in:
@@ -87,14 +87,14 @@ def pip_install(prefix, packages, editable=False):
|
|||||||
Set editable=True to add '--editable' to the pip install commandline.
|
Set editable=True to add '--editable' to the pip install commandline.
|
||||||
Very useful when doing active development
|
Very useful when doing active development
|
||||||
"""
|
"""
|
||||||
flags = '--no-cache-dir --upgrade'
|
flags = ['--no-cache-dir', '--upgrade']
|
||||||
if editable:
|
if editable:
|
||||||
flags += '--editable'
|
flags.append('--editable')
|
||||||
subprocess.check_output([
|
subprocess.check_output([
|
||||||
os.path.join(prefix, 'bin', 'python3'),
|
os.path.join(prefix, 'bin', 'python3'),
|
||||||
'-m', 'pip',
|
'-m', 'pip',
|
||||||
'install', '--no-cache-dir',
|
'install',
|
||||||
] + packages)
|
] + flags + packages)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user