Convert .whl file to other platform

114 Views Asked by At

I want python library in whl file that run in Android arm64-v8a. But on PyPI, there are only for Window, Linux and Mac platform. I saw people using the wheel library so I test it using Numpy. I download zip file source code from PyPI and run python setup.py bdist_wheel on Linux. I saw from web that the result should be -any, which can be run in any platform. However, the result whl file only run on Linux platform. I also tried on Window and -win_amd64 file is produced. How can I have a whl file that is compatible in any platform or specifically Android? Thank you.

1

There are 1 best solutions below

0
mhsmith On

Linux and Windows .whl files contain native code, so they cannot be converted to another platform. To build a .whl for Android, the easiest way is to use this build tool.