diff options
author | Peter Mikus <pmikus@cisco.com> | 2019-11-04 09:27:28 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2019-11-29 12:03:24 +0000 |
commit | ed0258a440cfad7023d643f717ab78ac568dc59b (patch) | |
tree | 1c95644f63d9273cf805a4f102f9f5d84e85b329 /resources/tools/presentation | |
parent | 497f606967363d88b4b36b74859ad360eba9eccd (diff) |
Python3: PIP requirement
- Install via PIP3
- Use virtualenv Python3 interpret
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: Iad22b344b418a1d91774d23d5ea17bfd48d394b3
Diffstat (limited to 'resources/tools/presentation')
-rwxr-xr-x | resources/tools/presentation/run_cpta.sh | 6 | ||||
-rwxr-xr-x | resources/tools/presentation/run_report.sh | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/resources/tools/presentation/run_cpta.sh b/resources/tools/presentation/run_cpta.sh index 954f17d53c..a60c1cc7a9 100755 --- a/resources/tools/presentation/run_cpta.sh +++ b/resources/tools/presentation/run_cpta.sh @@ -16,11 +16,11 @@ sudo apt-get -y install libxml2 libxml2-dev libxslt-dev build-essential \ mkdir ${DIR[WORKING]} # Create virtual environment -virtualenv ${DIR[WORKING]}/env -. ${DIR[WORKING]}/env/bin/activate +virtualenv -p $(which python3) ${DIR[WORKING]}/env +source ${DIR[WORKING]}/env/bin/activate # Install python dependencies: -pip install -r requirements.txt +pip3 install -r requirements.txt export PYTHONPATH=`pwd` diff --git a/resources/tools/presentation/run_report.sh b/resources/tools/presentation/run_report.sh index 24b6c21a70..56c671a8bb 100755 --- a/resources/tools/presentation/run_report.sh +++ b/resources/tools/presentation/run_report.sh @@ -27,11 +27,11 @@ fi mkdir ${DIR[WORKING]} # Create virtual environment -virtualenv ${DIR[WORKING]}/env -. ${DIR[WORKING]}/env/bin/activate +virtualenv -p $(which python3) ${DIR[WORKING]}/env +source ${DIR[WORKING]}/env/bin/activate # Install python dependencies: -pip install -r requirements.txt +pip3 install -r requirements.txt export PYTHONPATH=`pwd` |