-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
python3: Circular dependency between python3-email and python3-urllib #12942
Comments
I ran the stdlib dependency script on Python itself - I haven't gone through the results in detail yet but it looks like there may be a number of imports that are not captured as package dependencies (not sure if there are any other circular dependencies). |
One idea would be to merge the 2 packages into a single one.
I'll admit that when I split the packages into small chunks, I did not take into account these imports much. In the back of my head I always knew this is far from perfect, but if I was going to try to make it perfect, it would take too long. I still feel, that putting CPython with all libs in places with small flash-sizes is weird, but if people want to do that, and this package split helps, then sure. |
Merging would be fine but the two modules don't seem to be related, e.g. from the name
I think for packagers, those who don't care about install size will just specify For users, I think if/when they see a module missing error, they just install the appropriate package and move on. I don't think many of them will report an issue or open a PR to fix the dependency. I'll go through the script results in more detail later (may take a few days); we should have a better understand after and can then decide what to do (if anything). |
any more thoughts on this? |
The problem is larger than just email and urllib: #20462 (comment) This isn't your responsibility anymore, you can unsubscribe from the issue if you like. |
Maintainer: me, @commodo
Environment: N/A
Description:
In the Python 3 modules, urllib imports email and email imports from urllib.
In our packages, python3-urllib depends on python3-email (#8307) but python3-email does not depend on python3-urllib.
If python3-email has a dependency on python3-urllib, then make will complain about the circular dependency, but if python3-email does not depend on python3-urllib, then installing python3-email only and importing the email module will result in a run-time error. (I found this when testing for #12941.)
Not sure how this should be addressed☹️
The text was updated successfully, but these errors were encountered: