pythonwheels: Upload failed (400): Binary wheel for an unsupported platform
Hi, I followed the instructions on the website (pip install wheel, universal=1 in setup.cfg) but when I tried uploading to pypi with: python setup.py sdist bdist_wheel upload
I got the following output:
[...]
installing to build/bdist.linux-i686/wheel
running install
running install_egg_info
Copying mps.egg-info to build/bdist.linux-i686/wheel/mps-0.20.10.data/purelib/mps-0.20.10.egg-info
running install_scripts
creating build/bdist.linux-i686/wheel/mps-0.20.10.data/scripts
copying build/scripts-2.7/mps -> build/bdist.linux-i686/wheel/mps-0.20.10.data/scripts
changing mode of build/bdist.linux-i686/wheel/mps-0.20.10.data/scripts/mps to 775
creating build/bdist.linux-i686/wheel/mps-0.20.10.dist-info/WHEEL
running upload
Submitting dist/mps-0.20.10.tar.gz to https://pypi.python.org/pypi
Server response (200): OK
Submitting /f/h/projects/github/mps/dist/mps-0.20.10-cp27-none-linux_i686.whl to https://pypi.python.org/pypi
Upload failed (400): Binary wheel for an unsupported platform
This is the first time I have tried using wheel, does anyone know what the issue is? This is the setup.py I was using: https://raw.githubusercontent.com/np1/mps/master/setup.py
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 28 (12 by maintainers)
I found the answer by going through the issue list on Bitbucket. It’s marked as resolved although I consider it a bug! https://bitbucket.org/pypa/wheel/issue/65/distributions-without-any-modules-are
When no modules or packages are specified in setup.py (I only have a script specified in mine), it creates a platform specific wheel.
I tested by creating a dummy .py module and specifying it with
py_modules=['dummy.py']
in setup.py and it succesfully createddist/mps-0.20.14-py2.py3-none-any.whl
Since most projects will have modules or packages specified I guess it’s not a big problem. I will change my setup.py to use
entry_points['console_scripts']
instead of thescripts=['mps']
entry@todofixthis I’m sorry, this isn’t the right place to search for assistance on this issue. As @ghickman explained in the first comment here, this site is informational. Specifically, it’s a graphic that visualises wheel support in the 360 most downloaded packages on PyPI.
I’m sure the folks at TravisCI will be able to help you better understand the issue, but if not, as @ghickman said, you should be able to also get assistance at the official wheel repo: https://bitbucket.org/pypa/wheel or the
#pypa
channel on freenode (IRC) where the developers of the spec and tools are around to lend a hand.