Change npm install call in setup.py (#2610)

This commit is contained in:
Henryk Plötz
2022-04-29 12:00:23 +02:00
committed by GitHub
parent e7a71a1cfd
commit 86d47fcdd1

View File

@@ -92,7 +92,7 @@ def npm_install():
node_prefix = os.path.join(here, 'pretix', 'static.dist', 'node_prefix')
os.makedirs(node_prefix, exist_ok=True)
copy_tree(os.path.join(here, 'pretix', 'static', 'npm_dir'), node_prefix)
subprocess.check_call(['npm', 'install', '--prefix=' + node_prefix])
subprocess.check_call('npm install', shell=True, cwd=node_prefix)
npm_installed = True