{
  "version": "0.0.0",
  "private": true,
  "name": "horizon",
  "description": "OpenStack Senlin Dashboard",
  "repository": "none",
  "license": "Apache 2.0",
  "devDependencies": {
    "eslint": "3.19.x",
    "eslint-config-openstack": "^4.0.1",
    "eslint-plugin-angular": "3.1.x",
    "jasmine-core": "2.8.x",
    "karma": "1.7.x",
    "karma-chrome-launcher": "^2.2.0",
    "karma-cli": "1.0.x",
    "karma-coverage": "1.1.x",
    "karma-jasmine": "1.1.x",
    "karma-ng-html2js-preprocessor": "1.0.x",
    "karma-phantomjs-launcher": "1.0.x",
    "karma-threshold-reporter": "0.1.x",
    "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",
    "test": "karma start senlin_dashboard/karma.conf.js --single-run",
    "lint": "eslint --no-color senlin_dashboard/static"
  },
  "dependencies": {}
}

{
  "version": "0.0.0",
  "private": true,
  "name": "horizon",
  "description": "OpenStack Senlin Dashboard",
  "repository": "none",
  "license": "Apache 2.0",
  "devDependencies": {
    "eslint": "3.19.x",
    "eslint-config-openstack": "^4.0.1",
    "eslint-plugin-angular": "3.1.x",
    "jasmine-core": "2.8.x",
    "karma": "1.7.x",
    "karma-chrome-launcher": "^2.2.0",
    "karma-cli": "1.0.x",
    "karma-coverage": "1.1.x",
    "karma-jasmine": "1.1.x",
    "karma-ng-html2js-preprocessor": "1.0.x",
    "karma-phantomjs-launcher": "1.0.x",
    "karma-threshold-reporter": "0.1.x",
    "phantomjs-prebuilt": "2.1.x"
  },
  "scripts": {
    "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 senlin_dashboard/karma.conf.js --single-run",
    "lint": "eslint --no-color senlin_dashboard/static"
  },
  "dependencies": {}
}

Fix postinstall for npm job
Fix postinstall for npm job

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

Change-Id: Ib82a7461949e42eef5f155b13e7efbd7f65139f5
