'wheel' not detected when building wheel for legacy setup.py project
See original GitHub issueDescription
Context including links to CI job logs: https://github.com/dependabot/dependabot-core/issues/5478
The pipfile
package doesn’t publish a wheel: https://pypi.org/project/pipfile/#files
However, when installing the package, I got the following error message:
Using legacy 'setup.py install' for pipfile, since package 'wheel' is not installed.
This implies that I need to install the wheel
package, which is extremely confusing, because I had installed wheel
, and other packages were successfully installing wheel.
It took some digging before I realized the problem was that the target package had never published their wheel.
Expected behavior
Please reword the error message to make it clear that the problem is the target package hasn’t published a wheel… maybe:
Using legacy 'setup.py install' for pipfile, since pipfile has not published a wheel.
pip version
22.0.4
Python version
3.10.5
OS
Ubuntu 20.04
How to Reproduce
pip install pipfile
Output
No response
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Issue Analytics
- State:
- Created a year ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Could not build wheels since package wheel is not installed
You need to install the wheel package, like this: pip install wheel.
Read more >How to install, download and build Python wheels - ActiveState
Python Install Wheel. Open source Python packages can be installed from Source Distributions (sdist) or Wheels (whl). According to the Python ...
Read more >building wheel for numpy (pyproject.toml) ... error - You.com
i got this problem when trying to install numpy on my MAC. anyone can help me?! I tried to find many ways but...
Read more >wheel Documentation - Read the Docs
A setuptools extension for building wheels that provides the bdist_wheel setuptools command. 2. A command line tool for working with wheel ...
Read more >Tips and tricks - cibuildwheel - Read the Docs
cibuildwheel defines the environment variable CIBUILDWHEEL to the value 1 allowing projects for which the C extension is optional to make it mandatory...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That’s a valid solution as well, yes.
That might interact weirdly with certain redistributions of Python, such as the one that Debian ships (but IIUC, dependabot doesn’t use the Debian-provided Python, so it should be fine). +
The main misunderstanding here was that
wheel
is not for installing wheels, but for building wheels. So if a project starts publishing wheels, pip can install those directly without needing to build anything, so yes, you wouldn’t see the message in that case.