qtile/dev.sh

28 lines
746 B
Bash
Executable File

#!/bin/sh
set -e
set -x
echo "Creating dev environment in ./venv..."
python=python3
if [ "$#" -eq 1 ]; then
python=$1
fi
${python} -m venv venv
. venv/bin/activate
pip install -U pip setuptools wheel
# https://github.com/qtile/qtile/issues/994#issuecomment-497984551
echo "Installing xcffib then cairocffi..."
pip install 'xcffib >= 0.10.1' && pip install --no-cache-dir 'cairocffi >= 0.9.0'
echo "Installing other required packages..."
pip install -r requirements.txt
pip install -r requirements-dev.txt
echo ""
echo " * Created virtualenv environment in ./venv."
echo " * Installed all dependencies into the virtualenv."
echo " * You can now activate the $(python3 --version) virtualenv with this command: \`. venv/bin/activate\`"