Home:ALL Converter>Python twine error: unsupported platform tag 'linux_x86_64'

Python twine error: unsupported platform tag 'linux_x86_64'

Ask Time:2021-02-08T23:36:10         Author:chmike

Json Formatter

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 ?

Author:chmike,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/66104637/python-twine-error-unsupported-platform-tag-linux-x86-64