forked from qtile/qtile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·27 lines (21 loc) · 746 Bytes
/
dev.sh
File metadata and controls
executable file
·27 lines (21 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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\`"