Skip to content

Commit e946035

Browse files
authored
Merge pull request #61 from jupyter/check-build-cmd
Only run build command if one is given
2 parents 535c89e + 3dc6bd5 commit e946035

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter_packaging/setupbase.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ def run(self):
377377
log.info('Installing build dependencies with npm. This may '
378378
'take a while...')
379379
run(npm_cmd + ['install'], cwd=node_package)
380-
run(npm_cmd + ['run', build_cmd], cwd=node_package)
380+
if build_cmd:
381+
run(npm_cmd + ['run', build_cmd], cwd=node_package)
381382

382383
return NPM
383384

0 commit comments

Comments
 (0)