Re: New (optional) python egg dependency generator for RPM

2015-11-22 Thread Neal Gompa
On Sun, Nov 22, 2015 at 10:17 PM, Neal Gompa wrote: > On Sun, Nov 22, 2015 at 10:11 PM, Nick Coghlan wrote: > >> On 22 November 2015 at 04:18, Neal Gompa wrote: >> > Based on the feedback from you guys, I've made the changes to move to >> > pythonX.Ydist() in the dependency generator. That code

Re: New (optional) python egg dependency generator for RPM

2015-11-22 Thread Neal Gompa
On Sun, Nov 22, 2015 at 10:11 PM, Nick Coghlan wrote: > On 22 November 2015 at 04:18, Neal Gompa wrote: > > Based on the feedback from you guys, I've made the changes to move to > > pythonX.Ydist() in the dependency generator. That code has been > > submitted as a pull request to the RPM GitHub

Re: New (optional) python egg dependency generator for RPM

2015-11-22 Thread Nick Coghlan
On 22 November 2015 at 04:18, Neal Gompa wrote: > Based on the feedback from you guys, I've made the changes to move to > pythonX.Ydist() in the dependency generator. That code has been > submitted as a pull request to the RPM GitHub repository[0]. I also > added a switch for those who want python

Re: New (optional) python egg dependency generator for RPM

2015-11-21 Thread Neal Gompa
On Wed, Nov 18, 2015 at 11:32 AM, Toshio Kuratomi wrote: > > On Wed, Nov 18, 2015 at 5:27 AM, Neal Gompa wrote: > > On Wed, Nov 18, 2015 at 2:48 AM, Nick Coghlan wrote: > >> I'd been thinking using "pip install" instead of "setup.py install" in > >> the build macros would be sufficient, but I no

Re: New (optional) python egg dependency generator for RPM

2015-11-18 Thread Toshio Kuratomi
On Wed, Nov 18, 2015 at 5:27 AM, Neal Gompa wrote: > On Wed, Nov 18, 2015 at 2:48 AM, Nick Coghlan wrote: >> I'd been thinking using "pip install" instead of "setup.py install" in >> the build macros would be sufficient, but I now realise that isn't the >> case - if a project uses flit (for examp

Re: New (optional) python egg dependency generator for RPM

2015-11-18 Thread Neal Gompa
On Wed, Nov 18, 2015 at 2:48 AM, Nick Coghlan wrote: > > On 18 November 2015 at 02:29, Jason L Tibbitts III wrote: > >> "NC" == Nick Coghlan writes: > > > > NC> If so, then there's some relevant work currently under way upstream > > NC> to improve the interaction between Python installation

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Nick Coghlan
On 18 November 2015 at 02:29, Jason L Tibbitts III wrote: >> "NC" == Nick Coghlan writes: > > NC> If so, then there's some relevant work currently under way upstream > NC> to improve the interaction between Python installation tools and > NC> build systems to improve the metadata extraction p

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Toshio Kuratomi
On Nov 17, 2015 8:18 AM, "Neal Gompa" wrote: > > I see the problem you are describing, but how do you solve it currently? > Currently we use manually specified dependencies with package names here. So when python2.6-foo is built, the packager specifies a dependency on python2.6-setuptools. > That

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Jason L Tibbitts III
> "NC" == Nick Coghlan writes: NC> If so, then there's some relevant work currently under way upstream NC> to improve the interaction between Python installation tools and NC> build systems to improve the metadata extraction process, rather NC> than relying on implementation details of setupt

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Neal Gompa
On Tue, Nov 17, 2015 at 10:43 AM, Toshio Kuratomi wrote: > > On Nov 17, 2015 6:47 AM, "Neal Gompa" wrote: >> >> That's already guaranteed by the auto-generated python(abi) requires, >> and that would also make it hugely problematic to use in spec files in >> any distro agnostic manner, so I don't

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Toshio Kuratomi
On Nov 17, 2015 6:47 AM, "Neal Gompa" wrote: > > On Tue, Nov 17, 2015 at 9:44 AM, Toshio Kuratomi wrote: > > One thing I would change, though: instead of python2dist(name) use > > python2.7dist(name). A module built for python 2.7 won't be able to import > > a module built for python2.6 (the pyt

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Donald Stufft
> On Nov 17, 2015, at 9:53 AM, Neal Gompa wrote: > > On Tue, Nov 17, 2015 at 9:35 AM, Donald Stufft wrote: >> >>> On Nov 17, 2015, at 9:26 AM, Neal Gompa wrote: >>> >>> The dependency generator uses pkg_resources (specifically >>> Distribution, FileMetadata, PathMetadata) to read data in the

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Neal Gompa
On Tue, Nov 17, 2015 at 9:35 AM, Donald Stufft wrote: > >> On Nov 17, 2015, at 9:26 AM, Neal Gompa wrote: >> >> The dependency generator uses pkg_resources (specifically >> Distribution, FileMetadata, PathMetadata) to read data in the >> .egg-info directory. That should still work with .dist-info

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Toshio Kuratomi
On Nov 17, 2015 6:06 AM, "Nick Coghlan" wrote: > > On 17 November 2015 at 23:25, Neal Gompa wrote: > > As for naming, I'm all ears for a better name, because if the "egg" > > name is going away, I'd rather it not continue to say that. > > My suggestions would be either: > > python2dist(name)/

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Neal Gompa
On Tue, Nov 17, 2015 at 9:44 AM, Toshio Kuratomi wrote: > > On Nov 17, 2015 6:06 AM, "Nick Coghlan" wrote: >> >> On 17 November 2015 at 23:25, Neal Gompa wrote: >> > As for naming, I'm all ears for a better name, because if the "egg" >> > name is going away, I'd rather it not continue to say tha

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Donald Stufft
> On Nov 17, 2015, at 9:26 AM, Neal Gompa wrote: > > On Tue, Nov 17, 2015 at 8:34 AM, Donald Stufft wrote: >> >>> On Nov 17, 2015, at 8:25 AM, Neal Gompa wrote: >>> Is the format inside of the .dist-info directory the same as the older >>> .egg-info and .egg-link directories? If so, it should

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Neal Gompa
On Tue, Nov 17, 2015 at 8:34 AM, Donald Stufft wrote: > >> On Nov 17, 2015, at 8:25 AM, Neal Gompa wrote: >> Is the format inside of the .dist-info directory the same as the older >> .egg-info and .egg-link directories? If so, it should be easy to add >> to read that information too. > > Currentl

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Nick Coghlan
On 17 November 2015 at 23:25, Neal Gompa wrote: > As for naming, I'm all ears for a better name, because if the "egg" > name is going away, I'd rather it not continue to say that. My suggestions would be either: python2dist(name)/python3dist(name) or: python2(name)/python3(name) The "

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Donald Stufft
> On Nov 17, 2015, at 8:25 AM, Neal Gompa wrote: > > On Tue, Nov 17, 2015 at 8:05 AM, Donald Stufft wrote: >> >>> On Nov 17, 2015, at 7:54 AM, Nick Coghlan wrote: >>> >>> On 17 November 2015 at 22:05, Neal Gompa wrote: and I wanted to give the Python SIG in Fedora the opportunity

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Neal Gompa
On Tue, Nov 17, 2015 at 8:05 AM, Donald Stufft wrote: > >> On Nov 17, 2015, at 7:54 AM, Nick Coghlan wrote: >> >> On 17 November 2015 at 22:05, Neal Gompa wrote: >>> and >>> I wanted to give the Python SIG in Fedora the opportunity to try it >>> out and see if we might want to enable it in Fedor

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Donald Stufft
> On Nov 17, 2015, at 7:54 AM, Nick Coghlan wrote: > > On 17 November 2015 at 22:05, Neal Gompa wrote: >> On Tue, Nov 17, 2015 at 3:26 AM, Nick Coghlan wrote: >>> I'm not clear on what you mean by depending on an egg. Eggs are a >>> binary format that isn't compatible with Linux distro packagi

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Nick Coghlan
On 17 November 2015 at 22:05, Neal Gompa wrote: > On Tue, Nov 17, 2015 at 3:26 AM, Nick Coghlan wrote: >> I'm not clear on what you mean by depending on an egg. Eggs are a >> binary format that isn't compatible with Linux distro packaging >> policies, since they lose too much structural informati

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Neal Gompa
On Tue, Nov 17, 2015 at 3:26 AM, Nick Coghlan wrote: > I'm not clear on what you mean by depending on an egg. Eggs are a > binary format that isn't compatible with Linux distro packaging > policies, since they lose too much structural information regarding > where files should be installed for pol

Re: New (optional) python egg dependency generator for RPM

2015-11-17 Thread Nick Coghlan
On 17 November 2015 at 00:38, Neal Gompa wrote: > Hello all, > > I recently upstreamed some fixes to a new RPM dependency generator > that will be available as an option for distributions to enable. The > new generator uses python .egg data to generate Provides and Requires > in the form of python

New (optional) python egg dependency generator for RPM

2015-11-16 Thread Neal Gompa
Hello all, I recently upstreamed some fixes to a new RPM dependency generator that will be available as an option for distributions to enable. The new generator uses python .egg data to generate Provides and Requires in the form of pythonXegg(Y), where X is the Python major version and Y is the mo