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://git@git.brane.cloud/adunand/pyev.git \
&& pip install -t $tmp/packages git+ssh://git@git.brane.cloud/software/sjrpc.git \
&& pip install -t $tmp/packages --install-option "--install-scripts=$tmp/bin/" \
&& pip install -t $tmp/packages --upgrade \
git+ssh://git@git.brane.cloud/software/cc-common.git \
git+ssh://git@git.brane.cloud/software/cc-server.git)
find $tmp/packages/ | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
cp $tmp/bin/cc-server $tmp/packages/__main__.py
cp $tmp/packages/bin/cc-server $tmp/packages/__main__.py
echo "__import__('pkg_resources').declare_namespace(__name__)" > $tmp/packages/cloudcontrol/__init__.py
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