summaryrefslogtreecommitdiff
path: root/pkg/build_bundle_with_venv.sh
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-11-06 17:55:07 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2016-11-09 20:36:55 +0100
commit981e4b6e66fc807fd36086e37296e40da914a0ff (patch)
treee14b1dc8ef28eabbff1999f15f68c3ee26e1316b /pkg/build_bundle_with_venv.sh
parent54613799b6277cfaf5636f9a193a70622ba0c0ae (diff)
[ci] generate bundle from gitlab runner
some hacks needed, it seems pyinstaller is choking again on namespace packages for some reason that is beyond my current comprenhension.
Diffstat (limited to 'pkg/build_bundle_with_venv.sh')
-rwxr-xr-xpkg/build_bundle_with_venv.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg/build_bundle_with_venv.sh b/pkg/build_bundle_with_venv.sh
new file mode 100755
index 00000000..929710ad
--- /dev/null
+++ b/pkg/build_bundle_with_venv.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+virtualenv venv
+source venv/bin/activate
+$VIRTUAL_ENV/bin/pip install -U pyinstaller==3.1 packaging
+$VIRTUAL_ENV/bin/pip install zope.interface zope.proxy
+$VIRTUAL_ENV/bin/pip install leap.soledad.common
+$VIRTUAL_ENV/bin/pip install leap.soledad.client
+
+# XXX hack for the namespace package not being properly handled by pyinstaller
+touch $VIRTUAL_ENV/lib/python2.7/site-packages/zope/__init__.py
+touch $VIRTUAL_ENV/lib/python2.7/site-packages/leap/soledad/__init__.py
+
+make dev-all
+
+$VIRTUAL_ENV/bin/pip uninstall leap.bitmask
+$VIRTUAL_ENV/bin/pip install .
+
+make bundle
+make bundle_tar