mirror of
https://github.com/geohot/qira
synced 2025-03-12 18:13:15 +03:00
Added virtualenv2 selection
This commit is contained in:
parent
464d6eb67f
commit
61ea9dc3ac
@ -3,8 +3,10 @@
|
||||
# default is just pip, but on things like arch where python 3 is default, it's pip2
|
||||
if [ $(which pip2) ]; then
|
||||
PIP="pip2"
|
||||
VIRTUALENV="virtualenv2"
|
||||
else
|
||||
PIP="pip"
|
||||
VIRTUALENV="virtualenv"
|
||||
fi
|
||||
|
||||
LIBCAPSTONE_SHA256="a7bf1cb814c6e712a314659b074bc4c00d2e0006cac67d055d3130d4ecdd525d"
|
||||
@ -37,6 +39,7 @@ if [[ "$unamestr" == 'Linux' ]]; then
|
||||
echo "installing pip"
|
||||
sudo pacman -S --needed --noconfirm base-devel python2-pip
|
||||
PIP="pip2"
|
||||
VIRTUALENV="virtualenv2"
|
||||
elif [ $(which yum) ]; then
|
||||
sudo yum install -y python-pip python-devel gcc gcc-c++ python-virtualenv glib2-devel
|
||||
fi
|
||||
@ -64,7 +67,7 @@ elif [[ "$unamestr" == 'Darwin' ]]; then
|
||||
fi
|
||||
|
||||
echo "installing pip packages"
|
||||
virtualenv venv
|
||||
$VIRTUALENV venv
|
||||
source venv/bin/activate
|
||||
$PIP install --upgrade -r requirements.txt
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user