HTTPError: 400 Bad Request from https://test.pypi.org/legacy/
Binary wheel 'MyModule-1.0.0-cp37-cp37m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.
Instead, I could build a source-only package with python3 setup.py sdist, but then the module won’t be aot-compiled and import will fail. A solution might be to aot-compile the module on first import, but I am not sure where to put the resulting shared library file for each possible platform.
Using the kwarg would result in compilation on users’ machines on the first use for each set of argument types - on subsequent runs the compiled code will be loaded from the cache.
We were using caching until a few days ago, but import still took several seconds. With aot, it only takes slightly more than one second. A previous version was using C with ffi, which took well under a second to import, but it was harder to maintain for different platforms.
In a perfect world, caching would also be near-instant, but as long as that is not the case, aot-compilation seems like the next-best option.