chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
845 stars 133 forks source link

Update to scipy 1.9 or later #1040

Open vjeson opened 11 months ago

vjeson commented 11 months ago

error message

Couldn't find compatible wheel for chaquopy-libgfortran 4.9 in /android/chaquopy/server/pypi/dist/chaquopy-libgfortran

follow the tutorial https://github.com/chaquo/chaquopy/tree/master/server/pypi

downloaded fortran from gcc-x86_64-linux-x86_64.tar.bz2,extracted to chaquopy/server/pypi or chaquopy ,both not work

folder stucture

chaquopy/server/pypi
  --fortran
    --x86_64-4.9
       --x86_64-linux-android

build command ./build-wheel.py --python 3.8 --abi arm64-v8a scipy

vjeson commented 11 months ago

It doesn't look like a fortran problem, I can build other pacakge , for example ./build-wheel.py --python 3.8 --abi arm64-v8a bcrypt

but to build scipy what i need to do first?

mhsmith commented 11 months ago

Why are you trying to build SciPy? If you need a newer version than 1.4.1, you can get version 1.8.1 by switching to Python 3.9.

If you do need to build it, then as it says here:

The "host" requirements (NumPy etc.) must be downloaded manually from the public repository. Save them into a corresponding subdirectory of dist (e.g. dist/numpy), before running the build.

vjeson commented 11 months ago

I need to use scipy with milp ,The min version scipy is 1.9.0, so I want to build scipy myself ,Can you tell me the fortran folder structure? or can you compile scipy 1.9.x version for me , Do we have build docker to build all the packages thanks !

vjeson commented 11 months ago

I can compile version 1.81 now ,I should use fortran aarch64-linux-android-4.9 to build arm64-v8a version , The correct fortran path should be server/pypi/fortan/aarch64-linux-android-4.9 ,unfortunately the scipy 1.9.x build depend on meson , So I still can't build scipy 1.9.x

mhsmith commented 11 months ago

Thanks for the information; unfortunately I don't know much about meson, so I don't have any other suggestions at the moment. I've opened #1041 to track meson support.

If anyone else needs a newer version of scipy, please click the thumbs up button above, and post a comment explaining why you need it.

MatthijsPiek commented 1 month ago

We need a newer version of scipy to get rid of the memory leak and vulnerability https://security.snyk.io/vuln/SNYK-PYTHON-SCIPY-5756497