python: import errors namespace packages since setuptools egg/wheel change #71826
Labels
0.kind: bug
Something is broken
0.kind: regression
Something that worked before working no longer
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
6.topic: python
Describe the bug
The way setuptools is installed was changed from egg to wheel in 90be4c2. This has caused import errors when importing namespace packages in case of Python 2.
History
bootstrapped-pip
hassetuptools
installed fromwheel
.setuptools
was installed as egg.buildPythonPackage
would always add thissetuptools
. It likely was at the front ofPYTHONPATH
so they would receive the egg version.buildPythonPackage
was reimplemented as setup hooks.setuptools
was no longer included during runtime, so users had to add it. When they would addsetuptools
it would be in the front ofPYTHONPATH
, thus they would still receive the egg version.setuptools
installation method was changed from egg to wheel in 90be4c2, causing regressions.Relevant issues:
The text was updated successfully, but these errors were encountered: