Re: [Distutils] Q about best practices now (or near future)

2013-07-20 Thread Nick Coghlan
On 20 July 2013 01:47, PJ Eby p...@telecommunity.com wrote: On Fri, Jul 19, 2013 at 9:10 AM, Nick Coghlan ncogh...@gmail.com wrote: Right, I think the reasonable near term solutions are for pip to either: 1. generate zc.buildout style wrappers with absolute paths to avoid the implied runtime

Re: [Distutils] Upcoming changes to PEP 426/440

2013-07-20 Thread Nick Coghlan
On 20 July 2013 03:18, Daniel Holth dho...@gmail.com wrote: On Fri, Jul 19, 2013 at 11:23 AM, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: I would really like to see one more level of nesting: requires : { run : [ ... ], test : [ ... ] } I've already changed distlib's code several times

Re: [Distutils] entry points PEP

2013-07-20 Thread Paul Moore
On 19 July 2013 23:22, Monty Taylor monty.tay...@gmail.com wrote: Yeah. Not moving to zc.buildout for anything. I believe it will be a better option to just write by-hand scripts that get installed that just do: from nova.rootwrap import cmd return cmd.main(sys.argv) or something.

Re: [Distutils] wheel without console_scripts in 0.20.0

2013-07-20 Thread Paul Moore
On 20 July 2013 00:14, Daniel Holth dho...@gmail.com wrote: it might be nice to update the RECORD of installed files as part of the operation. I would argue that keeping RECORD up to date is essential, as not doing so breaks uninstall. It would also not be in line with PEP 376 It's actually

Re: [Distutils] Specific packaging goals and a tentative timeline

2013-07-20 Thread Paul Moore
On 20 July 2013 04:27, Nick Coghlan ncogh...@gmail.com wrote: It doesn't help that the Microsoft provided UI for configuring environment variables hasn't seen any serious improvements in the better part of two decades :P AFAIK, for setting environment variables, the Unix UI hasn't changed in

Re: [Distutils] wheel without console_scripts in 0.20.0

2013-07-20 Thread Nick Coghlan
On 20 July 2013 17:34, Paul Moore p.f.mo...@gmail.com wrote: On 20 July 2013 00:14, Daniel Holth dho...@gmail.com wrote: it might be nice to update the RECORD of installed files as part of the operation. I would argue that keeping RECORD up to date is essential, as not doing so breaks

Re: [Distutils] wheel without console_scripts in 0.20.0

2013-07-20 Thread Vinay Sajip
Paul Moore p.f.moore at gmail.com writes: I would argue that keeping RECORD up to date is essential, as not doing so breaks uninstall. It would also not be in line with PEP 376  It's actually not entirely clear that PEP 376 allows for a second tool to update an installation like this anyway

Re: [Distutils] Specific packaging goals and a tentative timeline

2013-07-20 Thread Nick Coghlan
On 20 July 2013 17:40, Paul Moore p.f.mo...@gmail.com wrote: On 20 July 2013 04:27, Nick Coghlan ncogh...@gmail.com wrote: It doesn't help that the Microsoft provided UI for configuring environment variables hasn't seen any serious improvements in the better part of two decades :P AFAIK,

Re: [Distutils] wheel without console_scripts in 0.20.0

2013-07-20 Thread Daniel Holth
On Sat, Jul 20, 2013 at 4:34 AM, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: Paul Moore p.f.moore at gmail.com writes: I would argue that keeping RECORD up to date is essential, as not doing so breaks uninstall. It would also not be in line with PEP 376 It's actually not entirely clear that

Re: [Distutils] entry points PEP

2013-07-20 Thread Doug Hellmann
On Jul 19, 2013, at 6:22 PM, Monty Taylor monty.tay...@gmail.com wrote: Yeah. Not moving to zc.buildout for anything. I believe it will be a better option to just write by-hand scripts that get installed that just do: from nova.rootwrap import cmd return cmd.main(sys.argv) or

Re: [Distutils] entry points PEP

2013-07-20 Thread Monty Taylor
https://review.openstack.org/#/c/38000/ On not-Windows, install a non-pkg_resources based script content. On windows, defer to underlying setuptools functionality. (the test failures showing on the patch were build farm issues which we just sorted, I'll run-check the patch once the farm is good)

Re: [Distutils] Q about best practices now (or near future)

2013-07-20 Thread Daniel Holth
On Sat, Jul 20, 2013 at 2:10 AM, Nick Coghlan ncogh...@gmail.com wrote: On 20 July 2013 01:47, PJ Eby p...@telecommunity.com wrote: On Fri, Jul 19, 2013 at 9:10 AM, Nick Coghlan ncogh...@gmail.com wrote: Right, I think the reasonable near term solutions are for pip to either: 1. generate

Re: [Distutils] Q about best practices now (or near future)

2013-07-20 Thread Nick Coghlan
On 21 Jul 2013 04:43, Daniel Holth dho...@gmail.com wrote: On Sat, Jul 20, 2013 at 2:10 AM, Nick Coghlan ncogh...@gmail.com wrote: On 20 July 2013 01:47, PJ Eby p...@telecommunity.com wrote: On Fri, Jul 19, 2013 at 9:10 AM, Nick Coghlan ncogh...@gmail.com wrote: Right, I think the

Re: [Distutils] Q about best practices now (or near future)

2013-07-20 Thread PJ Eby
On Sat, Jul 20, 2013 at 8:08 PM, Nick Coghlan ncogh...@gmail.com wrote: I see it as more useful for making an executable optional by defining a cli extra. If your project just gets installed as a dependency, no wrapper would get generated. Only if you went pip install myproject[cli] (or

Re: [Distutils] Q about best practices now (or near future)

2013-07-20 Thread Nick Coghlan
On 21 July 2013 11:53, PJ Eby p...@telecommunity.com wrote: On Sat, Jul 20, 2013 at 8:08 PM, Nick Coghlan ncogh...@gmail.com wrote: I see it as more useful for making an executable optional by defining a cli extra. If your project just gets installed as a dependency, no wrapper would get