mirror of https://github.com/n1nj4sec/pupy.git
linux: Build pyjnius
This commit is contained in:
parent
e7ac1734da
commit
a66913d66c
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue