Danube Release Docs Fixup patch 2
[parser.git] / tests / parser_install.sh
1 #!/bin/bash -e
2 ##############################################################################
3 # Copyright (c) 2016 ZTE Corporation.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 set +e
12
13 parser_repos_dir=$1
14
15 # start syslog for loghander
16 service rsyslog restart && echo "syslog start successfully"
17
18 # install requirements for parser
19 pip install -r ${parser_repos_dir}/parser/tosca2heat/tosca-parser/requirements.txt
20 pip install -r ${parser_repos_dir}/parser/tosca2heat/heat-translator/requirements.txt
21
22 # uninstall other tosca-parser and heat-translator for parser
23 pip uninstall -y tosca-parser
24 pip uninstall -y heat-translator
25
26 # install parser
27 cd ${parser_repos_dir}/parser/tosca2heat/tosca-parser && python setup.py install
28 cd ${parser_repos_dir}/parser/tosca2heat/heat-translator && python setup.py install