[Rpm-maint] [rpm] Rename to pythonX.Ydist, read .dist-info, and support legacy pythoneggs()() (#35)

Neal Gompa (ニール・ゴンパ) notifications at github.com
Sun Nov 29 13:50:28 UTC 2015


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:
https://lists.fedoraproject.org/archives/list/python-devel%40lists.fedoraproject.org/thread/SQBSAS4T25HK5YJBNBSFDD7KDQWDELL6/

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)`.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/35

-- Commit Summary --

  * Rename to pythonX.Ydist, read .dist-info, support legacy pythoneggs()()

-- File Changes --

    R scripts/pythondistdeps.py (58)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/35.patch
https://github.com/rpm-software-management/rpm/pull/35.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/35
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20151129/2d77f0dc/attachment.html>


More information about the Rpm-maint mailing list