mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-16 04:09:02 +00:00
26 lines
906 B
Bash
26 lines
906 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
command -v pyvenv >/dev/null 2>&1 || { echo >&2 "Python 3.3 required. Install it and try again. Aborting"; exit 1; }
|
||
|
|
||
|
if [ ! -d "env" ]; then
|
||
|
echo "No virtualenv. Creating one"
|
||
|
pyvenv --system-site-packages env
|
||
|
source env/bin/activate
|
||
|
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
|
||
|
easy_install pip
|
||
|
else
|
||
|
echo "There's already an env. Activating it"
|
||
|
source env/bin/activate
|
||
|
fi
|
||
|
|
||
|
echo "Installing pip requirements"
|
||
|
if [ "$(uname)" == "Darwin" ]; then
|
||
|
pip install -r requirements-osx.txt
|
||
|
else
|
||
|
python3 -c "import PyQt4" >/dev/null 2>&1 || { echo >&2 "PyQt 4.8+ required. Install it and try again. Aborting"; exit 1; }
|
||
|
pip install -r requirements.txt
|
||
|
fi
|
||
|
|
||
|
echo "Bootstrapping complete! You can now configure, build and run dupeGuru with:"
|
||
|
echo ". env/bin/activate && python configure.py && python build.py && python run.py"
|