From 191f889748d0774f9e64379862acddb13cfba4ee Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Wed, 30 May 2018 17:45:16 +0900 Subject: [PATCH] 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 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9ad611b5..095c5cc5 100644 --- a/package.json +++ b/package.json @@ -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"