Commit 193d0ae8 authored by Aurélien Dunand's avatar Aurélien Dunand
Browse files

Fix build package script

parent dbdfdf82
......@@ -7,13 +7,14 @@ fi
tmp=$(mktemp -d)
virtualenv -p pypy $tmp
(source $tmp/bin/activate && pip install -t $tmp/packages python-daemon pyev ply \
(source $tmp/bin/activate && pip install -t $tmp/packages python-daemon ply \
&& pip install -t $tmp/packages --no-binary ":all:" git+ssh:// \
&& pip install -t $tmp/packages git+ssh:// \
&& pip install -t $tmp/packages --install-option "--install-scripts=$tmp/bin/" \
&& pip install -t $tmp/packages --upgrade \
git+ssh:// \
find $tmp/packages/ | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
cp $tmp/bin/cc-server $tmp/packages/
cp $tmp/packages/bin/cc-server $tmp/packages/
echo "__import__('pkg_resources').declare_namespace(__name__)" > $tmp/packages/cloudcontrol/
python3 -m zipapp $tmp/packages/ -o "$1" -p '/usr/bin/env pypy'
echo "cc-server executable package created in $1"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment