Skip to content

Commit

Permalink
shell=True might not be necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
ttannis committed Jul 6, 2020
1 parent 7d604ca commit fb8b4c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def build_js() -> None:
logging.error('npm must be available')

try:
subprocess.check_call(['npm install'], cwd=PACKAGE_DIR, shell=True)
subprocess.check_call(['npm run build'], cwd=PACKAGE_DIR, shell=True)
subprocess.check_output(['npm install'], cwd=PACKAGE_DIR)
subprocess.check_call(['npm run build'], cwd=PACKAGE_DIR)
except Exception as e:
logging.warn('Installation of npm dependencies failed')
logging.warn(str(e))
Expand Down

0 comments on commit fb8b4c2

Please sign in to comment.