Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
saramsey committed Nov 22, 2021
1 parent a7724ed commit 34023c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup-python37-in-ubuntu18.shinc
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ curl -s https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
apt-get download python3-distutils
if [ -f python3-distutils_3.6.9-1~18.04_all.deb ]
then
python3-distutils-filename=python3-distutils_3.6.9-1~18.04_all.deb
python3_distutils_filename=python3-distutils_3.6.9-1~18.04_all.deb
else
if [ -f python3-distutils_3.8.10-0ubuntu1~20.04_all.deb ]
then
python3-distutils-filename=python3-distutils_3.8.10-0ubuntu1~20.04_all.deb
python3_distutils_filename=python3-distutils_3.8.10-0ubuntu1~20.04_all.deb
else
>&2 echo "Unrecognized python3 distutils .deb package filename; this is a bug in setup-python37-in-ubuntu18.shinc"
exit 1
fi
fi
mv ${python3-distutils-filename} /tmp
sudo dpkg-deb -x /tmp/${python3-distutils-filename}.deb /
mv ${python3_distutils_filename} /tmp
sudo dpkg-deb -x /tmp/${python3_distutils_filename}.deb /
sudo -H python3.7 /tmp/get-pip.py 2>&1 | grep -v "WARNING: Running pip as the 'root' user"

## create a virtualenv for building KG2
Expand Down

0 comments on commit 34023c9

Please sign in to comment.