Explorar el Código

Use shell=True when running npm from setup.py

On windows, using shell=True ensures that the path is set up so we can find npm.

Fixes #102
Jason Grout hace 8 años
padre
commit
e31d6ce645
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      setup.py

+ 1 - 1
setup.py

@@ -23,7 +23,7 @@ def run(cmd, cwd=None):
 
     >>> run('npm install', cwd='./subdir')
     """
-    check_call(cmd.split(), cwd=cwd, stdout=sys.stdout, stderr=sys.stderr)
+    check_call(cmd, shell=True, cwd=cwd, stdout=sys.stdout, stderr=sys.stderr)
 
 from distutils import log
 log.set_verbosity(log.DEBUG)