From 33b1bae56a71cd8e8b8e37749e5d10fd3cfe8d55 Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Wed, 30 May 2018 17:42:43 +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: Idc5df31d20def2d29cb1502e5d88946e1be6ae36 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8adc9d1..99469bb 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "phantomjs-prebuilt": "2.1.x" }, "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", "test": "karma start zun_ui/karma.conf.js --single-run", "lint": "eslint --no-color zun_ui/static", "lintq": "eslint --quiet zun_ui/static"