question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecate call to 'setup.py install' when 'wheel' is absent for source distributions without pyproject.toml

See original GitHub issue

This 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:open
  • Created 3 years ago
  • Reactions:19
  • Comments:33 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
melaukikcommented, Dec 13, 2022

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

1reaction
pradyunsgcommented, Nov 11, 2022

Will pip install http://example.com/some_source_tarball.zip run the build in an isolated or not isolated environment, if wheel is present in the current (virtual) environment?

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found