-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python: setuptools namespaces are broken (give collisions) #2412
Comments
relates: NixOS#2412, NixOS#1826 This might lead to new problems, which we have to solve differently.
relates: NixOS#2412, NixOS#1826 This might lead to new problems, which we have to solve differently.
This is a major drawback of current design. Eggs and wheels is how this is handled upstream. We should move forward with wheels, something that @chaoflow is working on. |
I'm just curious – any progress on this? |
Nah, I still haven't found time to tackle this one. Maybe during my July vacations :-) |
Nope, nope. Bumping the milestone :/ |
Another side-effect is multiple dependencies in tree that collide: 9815218 Ideally we'd want such tree to error out. |
We have a similar problem like Haskell here: http://lists.science.uu.nl/pipermail/nix-dev/2015-October/018393.html |
Wheels PR now reports errors if packages conflict, but setuptools namespaces support is still broken. To reproduce:
|
I think this is actually an upstream issue. If two packages that have namespaces are in different PYTHONPATH, it won't work. See
vs. virtualenv
which clearly works because both packages are in the same folder. |
Note that #5096 will solve the problem with collisions. |
@domenkozar Is there an upstream bug report for it? (different PYTHONPATHs) |
Nope, not yet. I haven't found enough free time to dig into details to report this. |
Namespaces do seem to work when using
In #16672 I proposed using |
@FRidh |
I don't really have a clue about python stuff - @domenkozar is this still a problem ? Maybe @garbas could also help out with the status of this ;) |
Generally, namespace packages work fine. There is only one case, and we can't fix that really. If you make a Python 2 env with namespace packages |
Since bf5d6fb, any combination of packages using setuptools namespaces are broken due to the fact we're not using eggs anymore. Since packages have the same path, they collide.
For example:
The text was updated successfully, but these errors were encountered: