mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-27 03:20:27 +08:00
Simplify how to pass noprogress
This commit is contained in:
parent
8339f40ca2
commit
3f921ff4d9
@ -346,12 +346,7 @@ class Bower(Command):
|
||||
|
||||
if self.should_run_npm():
|
||||
print("installing build dependencies with npm")
|
||||
npm_progress = check_output(['npm','get','progress']).decode().strip()
|
||||
if npm_progress not in {'true', 'false'}:
|
||||
raise ValueError('npm progress setting should be either `true `of `false` but %s was found.' % npm_progress)
|
||||
run(['npm','set','progress=false'])
|
||||
run(['npm', 'install'], cwd=repo_root)
|
||||
run(['npm','set','progress=%s'%npm_progress])
|
||||
run(['npm', 'install','--progress=false'], cwd=repo_root)
|
||||
os.utime(self.node_modules, None)
|
||||
|
||||
env = os.environ.copy()
|
||||
|
Loading…
Reference in New Issue
Block a user