-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
setuptools >=19.4 breaks pip install builds for two-level namespace packages #491
Comments
Original comment by robwhess (Bitbucket: robwhess, GitHub: robwhess): I'm seeing this error too. In my case, it's happening when I'm installing modules that share top level package names. For example, I already have installed a module that provides |
Original comment by darren_birkett (Bitbucket: darren_birkett, GitHub: Unknown): @robwhess yes, my package is organised the same way - a top level package, then some plugins that are under the same namespace. We have had to pin setuptools==19.3 for now |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): Using holland as an example, I'm not encountering the reported failure, but am encountering another failure.
I get the same error when running with setuptools 19.3, so there seems to be something with the holland package that's broken. In any case, it doesn't provide a reproducible failure that can be used to track down the issue. I'll follow robwhess' lead and see if I can reproduce it. |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): I was able to replicate the failure with a minimal package:
|
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): Oddly, I don't encounter the issue in this scenario (where I was attempting to use my local build of setuptools to troubleshoot).
I suspect the difference is the pip version, so pip may also be implicated in the issue. I've got to break for now, so I welcome others to investigate. |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): So... after struggling to once again create the error, I discovered that it's important to start from a clean clone of the setuptools-issue491 repository. I'm using |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): I've done some debugging and here's what I've found:
Note that the (Pdb) appears late in the output due to line-buffering of the output by pip. |
Original comment by darren_birkett (Bitbucket: darren_birkett, GitHub: Unknown): Thanks! |
Originally reported by: darren_birkett (Bitbucket: darren_birkett, GitHub: Unknown)
Running a pip install on a local directory is now breaking with setuptools >=19.4
downgrading setuptools to 19.3 fixes the issue:
We traced it back to this commit that was included in the 19.4 release:
https://bitbucket.org/pypa/setuptools/commits/1d2431a479f1737b95a96e62446a7b726d1d603e
I don't know enough about this to know if this is an actual problem with setuptools (pkg_resources) or the way the package I'm trying to install is put together (https://github.com/holland-backup/holland)
The text was updated successfully, but these errors were encountered: