From a66913d66cc890b61b6faffcfcfa3d305fee7629 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Wed, 24 Apr 2019 20:56:59 +0300 Subject: [PATCH] linux: Build pyjnius --- client/sources-linux/build-docker.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/client/sources-linux/build-docker.sh b/client/sources-linux/build-docker.sh index 95c557d5..0e5328af 100755 --- a/client/sources-linux/build-docker.sh +++ b/client/sources-linux/build-docker.sh @@ -18,7 +18,7 @@ set -e echo "[+] Install python packages" python -m pip install --upgrade pip -python -m pip install --upgrade setuptools +python -m pip install --upgrade setuptools cython python -m pip install --upgrade -q six packaging appdirs CC=/gccwrap CFLAGS_ABORT="-D_FORTIFY_SOURCE=2 -fstack-protector" \ @@ -40,6 +40,16 @@ python -m pip install --upgrade \ zeroconf==0.19.1 \ watchdog pulsectl pyalsaaudio pycryptodomex==3.7.0 --no-binary :all: +if [ "$TOOLCHAIN_ARCH" == "x86" ]; then + CFLAGS_PYJNIUS="$CFLAGS" +else + CFLAGS_PYJNIUS="$CFLAGS -D_LP64" +fi + +CFLAGS="${CFLAGS_PYJNIUS}" NO_JAVA=1 \ + python -m pip install --upgrade --force-reinstall \ + https://github.com/alxchk/pyjnius/archive/master.zip + CFLAGS="$CFLAGS -DDUK_DOUBLE_INFINITY=\"(1.0 / 0.0)\"" \ python -m pip install --force-reinstall --upgrade dukpy --no-binary :all: