I follow this tutorial to create an uploadable python package. The difference is that my package contains a C extension.
The package builds without problem on my linux computer. I get an error when I try to upload the package on test.pypi.org. The error is
HTTPError: 400 Bad Request from https://test.pypi.org/legacy/
Binary wheel 'qjson2json-0.0.0-cp38-cp38-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.
From what I found on google, it seam that wheels for specific unix platforms are not supported. It is recommended to use
manylinux instead. My code is small and a simple C file. Providing precompiled code is not really relevant.
So I would like to know how I can get around this problem ?
Do I simply erase the .whl file that has been created in dist/ directory ? Or can we specify to only upload the tar.gz file ? In the former case, can we specify to not build the .whl file which is apparently useless ?