You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2021/03/17 14:28:20 UTC
[cloudstack] 02/02: double python install
This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch marvin3
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit c01419272c2377bedced1ba22361ee83f585c28d
Author: Daan Hoogland <da...@onecht.net>
AuthorDate: Wed Mar 17 15:27:50 2021 +0100
double python install
---
tools/travis/before_install.sh | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tools/travis/before_install.sh b/tools/travis/before_install.sh
index d2128e4..a20f4a8 100755
--- a/tools/travis/before_install.sh
+++ b/tools/travis/before_install.sh
@@ -83,9 +83,11 @@ fi
sudo apt-get -q -y -V install freeipmi-common libfreeipmi16 libgcrypt20 libgpg-error-dev libgpg-error0 libopenipmi0 ipmitool libpython-dev libssl-dev libffi-dev python-openssl build-essential --no-install-recommends > /dev/null
-#sudo apt-get -y install python3 python3-pip
-#sudo apt-get -y install python3-devel # in order to be able to pip3 install pycrypto
-#echo `python3 --version | cut -d ' ' -f 2` >> /home/travis/build/apache/cloudstack/.python-version
+sudo apt-get -y install python3 python3-pip
+sudo apt-get -y install python3-dev # in order to be able to pip3 install pycrypto
+# for now we need both:
+sudo apt-get -y install python2 python2-pip
+sudo apt-get -y install python2-dev # in order to be able to pip3 install pycrypto
pyenv install `cat /home/travis/build/apache/cloudstack/.python-version`
@@ -120,6 +122,7 @@ echo -e "\nInstalling some python packages: "
for ((i=0;i<$RETRY_COUNT;i++))
do
python3 -m pip install --user --upgrade urllib3 lxml paramiko nose texttable ipmisim pyopenssl pycrypto mock flask netaddr pylint pycodestyle six astroid > /tmp/piplog
+ python2 -m pip install --user --upgrade urllib3 lxml paramiko nose texttable ipmisim pyopenssl pycrypto mock flask netaddr pylint pycodestyle six astroid >> /tmp/piplog
if [[ $? -eq 0 ]]; then
echo -e "\npython packages installed successfully"
break;