#### 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.

#### 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:
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)`.

#### From @soig's #46 
This clean up pythonegg and make it usable.

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * plug pythoneggs deps in internal deps generator
  * 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()()
  * Change pythoneggs.attr to pythondistdeps.attr

-- File Changes --

    A fileattrs/pythondistdeps.attr (4)
    R scripts/pythondistdeps.py (85)

-- Patch Links --

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

---
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/49
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to