Re: [Distutils] Wheel support added to distlib

2013-02-20 Thread Daniel Holth
On Wed, Feb 20, 2013 at 12:33 AM, Nick Coghlan ncogh...@gmail.com wrote: On Wed, Feb 20, 2013 at 10:18 AM, Daniel Holth dho...@gmail.com wrote: Wheel is only defined for 1 dist per archive. Indeed. We did briefly discuss the idea of wheels-within-wheels somewhere along the line (it may even

[Distutils] Wheel support added to distlib

2013-02-19 Thread Vinay Sajip
Following the acceptance of PEP 427 (The Wheel Binary Package Format 1.0), I've added support for Wheel to distlib [1]. There are still some issues cropping up in my Windows and OS X tests - the test code uses pip to install some test distributions to build wheels from, and the issues appear to

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Paul Moore
On 19 February 2013 20:16, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: Following the acceptance of PEP 427 (The Wheel Binary Package Format 1.0), I've added support for Wheel to distlib [1]. Wow! I'm impressed :-) I'll try to get some time to exercise this in the near future. Paul.

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Marcus Smith
Although some work has been done to add wheel support to pip, you don't need this to build wheels for existing PyPI distributions if you use distlib. The following script, wheeler.py, shows how you can use an unpatched, vanilla pip to build wheels: to be clear, the pip fork's main

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Marcus Smith
Marcus P.S. I see your script takes multiple arguments, but does it process dependencies? oh, I see, it works against a current installation. cool. so you could convert your pip freeze output into a set of args for this script. ___ Distutils-SIG

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Marcus Smith
correction: current installation - a newly generated installation with special options On Tue, Feb 19, 2013 at 12:51 PM, Marcus Smith qwc...@gmail.com wrote: Marcus P.S. I see your script takes multiple arguments, but does it process dependencies? oh, I see, it works against a current

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Vinay Sajip
Marcus Smith qwcode at gmail.com writes: oh, I see, it works against a current installation. cool. so you could convert your pip freeze output into a set of args for this script. Right: pip freeze | xargs python wheeler.py Will build one Wheel for each requirement, including dependencies

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Vinay Sajip
Vinay Sajip vinay_sajip at yahoo.co.uk writes: Marcus Smith qwcode at gmail.com writes: oh, I see, it works against a current installation. cool. so you could convert your pip freeze output into a set of args for this script. Right: pip freeze | xargs python wheeler.py Will build

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Vinay Sajip
Marcus Smith qwcode at gmail.com writes: cool, but you mean including dependencies, because pip freeze is flat, and already exhausts the dependencies, right? what does wheeler.py pyramid do? just pyramid itself or everything? Currently it would do everything (once I fix the naming bug that's

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Vinay Sajip
Vinay Sajip vinay_sajip at yahoo.co.uk writes: Currently it would do everything (once I fix the naming bug that's there), but you can basically control it by what arguments get passed to pip. Hmmm - looking at it further, I think there might be problems with simplistic handling of

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Daniel Holth
On Tue, Feb 19, 2013 at 6:34 PM, Vinay Sajip vinay_sa...@yahoo.co.ukwrote: Vinay Sajip vinay_sajip at yahoo.co.uk writes: Currently it would do everything (once I fix the naming bug that's there), but you can basically control it by what arguments get passed to pip. Hmmm - looking at it

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Vinay Sajip
Daniel Holth dholth at gmail.com writes: Wheel carefully preserves the meaningless purelib - platlib distinction even though they are the same path. If you have a mixed archive you should use platlib. It is legal but inadvisable to have both! The other one would go into .data/platlib or

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Daniel Holth
Wheel is only defined for 1 dist per archive. On Feb 19, 2013 6:57 PM, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: Daniel Holth dholth at gmail.com writes: Wheel carefully preserves the meaningless purelib - platlib distinction even though they are the same path. If you have a mixed

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Marcus Smith
cool, but you mean including dependencies, because pip freeze is flat, and already exhausts the dependencies, right? what does wheeler.py pyramid do? just pyramid itself or everything? Currently it would do everything (once I fix the naming bug that's there), but when I run wheeler.py

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Marcus Smith
cool, but you mean including dependencies, because pip freeze is flat, and already exhausts the dependencies, right? what does wheeler.py pyramid do? just pyramid itself or everything? Currently it would do everything (once I fix the naming bug that's there), but when I run wheeler.py

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Vinay Sajip
Marcus Smith qwcode at gmail.com writes: when I run wheeler.py pyramid (after taking out the --no-deps you just added), I get one wheel for mako: Mako-0.7.3-py33-none-any.whl I'm not seeing how this could build wheels for all the dependencies? where is that logic? I can certainly be

Re: [Distutils] Wheel support added to distlib

2013-02-19 Thread Nick Coghlan
On Wed, Feb 20, 2013 at 10:18 AM, Daniel Holth dho...@gmail.com wrote: Wheel is only defined for 1 dist per archive. Indeed. We did briefly discuss the idea of wheels-within-wheels somewhere along the line (it may even have been a private email conversation I had with Daniel about an early