Fix postinstall for npm job

npm jobs uses python3.5, but pip uses python2.7 to install horizon.
This fixes this issue.

Change-Id: I51c9177ec1cb92d8cb00db4ea66cd61e69c98ef2
This commit is contained in:
Shu Muto 2018-05-30 17:45:16 +09:00
parent d858585eb9
commit 191f889748
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
},
"dependencies": {},
"scripts": {
"postinstall": "if [ ! -d .tox ] || [ ! -d .tox/karma ]; then tox -ekarma --notest; pip install -U -t ./.tox/karma/lib/python3.5/site-packages/ ../horizon; fi",
"postinstall": "if [ ! -d .tox ] || [ ! -d .tox/karma ]; then tox -ekarma --notest; python3.5 -m pip install -U -t ./.tox/karma/lib/python3.5/site-packages/ ../horizon; fi",
"lint": "eslint --no-color magnum_ui/static",
"lintq": "eslint --quiet magnum_ui/static",
"test": "karma start magnum_ui/karma.conf.js --single-run"