From 3f921ff4d9198791d78b4319fc46494b9c900cc9 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 26 Jan 2016 15:10:37 -0800 Subject: [PATCH] Simplify how to pass noprogress --- setupbase.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/setupbase.py b/setupbase.py index 6abd33625..6e90cec07 100644 --- a/setupbase.py +++ b/setupbase.py @@ -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()