mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-11 11:19:48 +00:00
Adapted bootstrapping procedure to Python 3.4
This commit is contained in:
parent
8b83ed0e5c
commit
72b3cfb364
24
bootstrap.sh
24
bootstrap.sh
@ -10,21 +10,21 @@ fi
|
|||||||
|
|
||||||
if [ ! -d "env" ]; then
|
if [ ! -d "env" ]; then
|
||||||
echo "No virtualenv. Creating one"
|
echo "No virtualenv. Creating one"
|
||||||
python3 -m venv --system-site-packages env
|
# We need a "system-site-packages" env to have PyQt, but we also need to ensure a local pip
|
||||||
source env/bin/activate
|
# install. To achieve our latter goal, we start with a normal venv, which we later upgrade to
|
||||||
# With a new venv, we want to force (without checking if it exists first) installing a venv pip
|
# a system-site-packages once pip is installed.
|
||||||
# or else we'll end up with the system one.
|
python3 -m venv env
|
||||||
python get-pip.py $PIPARGS --force-reinstall
|
|
||||||
else
|
|
||||||
echo "There's already an env. Activating it"
|
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
|
if python -m ensurepip; then
|
||||||
|
echo "We're under Python 3.4+, no need to try to install pip!"
|
||||||
|
else
|
||||||
|
python get-pip.py $PIPARGS --force-reinstall
|
||||||
|
fi
|
||||||
|
deactivate
|
||||||
|
python3 -m venv env --system-site-packages
|
||||||
fi
|
fi
|
||||||
|
|
||||||
command -v pip
|
source env/bin/activate
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "pip not installed. Installing."
|
|
||||||
python get-pip.py $PIPARGS
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Installing pip requirements"
|
echo "Installing pip requirements"
|
||||||
if [ "$(uname)" == "Darwin" ]; then
|
if [ "$(uname)" == "Darwin" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user