Deprecate call to 'setup.py install' when 'wheel' is absent for source distributions without pyproject.toml
See original GitHub issueThis is one of a series of deprecations meant to collect feedback on the ultimate goal of always installing source distributions by first building a wheel and then installing from it.
This specific issue is about the case when pip has to call setup.py bdist_wheel because the wheel
package is not installed.
In that case, pip currently displays deprecation warning and continues installation by attempting a setup.py install.
In a future version, pip will ~either (to be decided)~:
- ~fail right away~
- ~attempt
setup.py bdist_wheel
and let that fail (the error message might be unclear in that case)~ - attempt an isolated build in PEP 517 mode with the default build system
The recommended way to silence this warning is to enable the --use-pep517
flag, which will in turn install setuptools
and wheel
in an isolated environment where it will attempt to build a wheel and install it.
Towards #8102
Issue Analytics
- State:
- Created 3 years ago
- Reactions:19
- Comments:33 (16 by maintainers)
Top Results From Across the Web
How to build a source distribution without using setup.py file?
This builds source distribution and wheel at the same time. ... "can't open file setup.py", and it will ignore your pyproject.toml file).
Read more >Why you shouldn't invoke setup.py directly - Paul Ganssle
This does not mean that setuptools itself is deprecated, or that using setup.py to configure your package builds is going to be removed....
Read more >DEPRECATION: pycountry is being installed using the legacy ...
Discussion can be found at Deprecate call to 'setup.py install' when 'wheel' is absent for source distributions without pyproject.toml ...
Read more >Running setuptools commands - Python Packaging Authority
This also means that users should avoid running commands directly via python setup.py <command> . If you want to create sdist or wheel...
Read more >Python — Spack 0.20.0.dev0 documentation
Direct invocation of setup.py is deprecated. This flag forces pip to use a deprecated installation procedure. It should only be used in packages...
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
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
ok no the building wheels issue is legit that astephan023 posted. I am getting the same error while installing grpcio, typedb client etc multiple files. Idk what the problem is the error is Building wheel for grpcio (pyproject.toml) did not run successfully. and then the last message is the same as what astephan says
It’ll behave the same as today, if wheel is installed – i.e. without isolation if there’s no pyproject.toml. That will not change due to this issue, but as @uranusjr alluded to, it will be changing with a similar message in a future pip release.