[Rpm-maint] [rpm] Rename to pythonX.Ydist, read .dist-info, support legacy pythoneggs()(), and cleanups (#50)
Neal Gompa (ニール・ゴンパ)
notifications at github.com
Sun Jan 17 20:23:05 UTC 2016
#### This PR contains both #35 and #46
After reviewing the changes from @soig in #46, I've merged it into a new pull request, after doing some tweaking and git sorcery. This obsoletes #35 and #46.
This PR differs from #49 in that it doesn't include the attr file to enable the dependency generator by default. I believe enabling this by default will likely require more discussion.
#### From #35
Per the recommendation of Nick Coghlan and Toshio Kuratomi, `pythonXegg(M)` is being renamed to `pythonX.Ydist(M)`.
An option has also been added to add a `pythonXdist(M)` Provides for distributions that may prefer to have it. The option `--majorver-provides` is intended for use if only one Python stack per major version will be available at a given time, as unexpected results may occur if there are multiple independent Python stacks per major version available.
Consequently, it will not be on by default when using the generator for generating Provides.
Additionally, .egg-info data is being replaced with .dist-info data, so we need to handle that case, too.
See for more details:
Also, @soig brought up on rpm-maint that Mageia currently uses `pythonegg(X)(M)` (e.g. `pythonegg(3)(rpm)` for python3 rpm bindings package) in their Python packages to pull in Python dependencies and requested a way to not break Mageia.
After discussing with @ffesti about it, Mageia's `pythonegg(X)(M)` will be supported by adding `--legacy` as a switch to generate legacy Provides to maintain compatibility with Mageia's existing usage and to give them a path to transition from this usage over time.
This switch will also enable `pythonXdist(M)` format to allow for a transition, as the conditions for using `pythonXdist(M)` are the same as `pythonegg(X)(M)`.
#### From @soig's #46
This clean up pythonegg and make it usable.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* do not call typelib deps generator
* kill now useless --buildroot option
* kill now unused is_exe()
* kill unimplemented -O option
* Rename to pythonX.Ydist, read .dist-info, support legacy pythoneggs()()
-- File Changes --
R scripts/pythondistdeps.py (85)
-- Patch Links --
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-maint