diff options
| author | Benson Muite <bkmgit@users.noreply.github.com> | 2024-11-26 19:32:06 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-26 17:32:06 +0100 |
| commit | df3e412e9b3defadc1f7d21810a88f270bb479ef (patch) | |
| tree | 1516e7367c0e307e88f6f6b97acae4dc52b90f2f /bin | |
| parent | fd1c72ea02be4b5204bb41b84123c6db789a8424 (diff) | |
Add lmde6 32bit build (#3297) (#3298)
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/build-distribution-archives | 2 | ||||
| -rw-r--r-- | bin/build-linux32-venv | 25 | ||||
| -rwxr-xr-x | bin/build-python | 5 |
3 files changed, 31 insertions, 1 deletions
diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives index 4f4484f3..eec3b011 100644 --- a/bin/build-distribution-archives +++ b/bin/build-distribution-archives @@ -104,7 +104,7 @@ if [ "$BUILD" = "windows" ]; then fi fi -if [ "$BUILD" = "linux" ]; then +if [ "$BUILD" = "linux" ] || [ "$BUILD" = "linux32" ]; then if [[ "$VERSION" =~ ^v[0-9][.0-9]+$ ]]; then VERSION=${VERSION#v} else diff --git a/bin/build-linux32-venv b/bin/build-linux32-venv new file mode 100644 index 00000000..d0b8385a --- /dev/null +++ b/bin/build-linux32-venv @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +set -e +uname -a +python3 --version +python3 -m pip --version +python3 -m pip debug + +python3 -m venv virtualenv +source virtualenv/bin/activate + +virtualenv/bin/pip debug +virtualenv/bin/pip install pycairo +virtualenv/bin/pip install PyGObject + +virtualenv/bin/pip install wxPython + +virtualenv/bin/pip install -r requirements.txt +# for networkx +virtualenv/bin/pip install pandas + +virtualenv/bin/pip install pyinstaller +# scipy gives us an ELF error when stripped +virtualenv/bin/pip uninstall --yes scipy +virtualenv/bin/pip install scipy --no-binary scipy +deactivate diff --git a/bin/build-python b/bin/build-python index 4df27e2d..52226630 100755 --- a/bin/build-python +++ b/bin/build-python @@ -31,6 +31,11 @@ if [ "$BUILD" = "linux" ]; then pyinstaller_args+="--add-binary /lib/x86_64-linux-gnu/libnsl.so.1:. " fi +if [ "$BUILD" = "linux32" ]; then + pyinstaller_args+="--hidden-import gi.repository.Gtk " + pyinstaller_args+="--add-binary /lib/i386-linux-gnu/libcrypt.so.1:. " + pyinstaller_args+="--add-binary /lib/i386-linux-gnu/libnsl.so.1:. " +fi if [ "$BUILD" = "windows" ]; then if [[ "$VERSION" =~ ^v[0-9][.0-9]+$ ]]; then |
