[Distutils] Binary Wheels and "universal" builds on OS-X

2013-05-31 Thread Chris Barker - NOAA Federal
HI Folks, A few of us over on the pythonmac list have been hashing out how best to support binary packages on OS-X. The binary wheel option seems very promising. However, there is one Mac-specific issue that does not seem to be addressed: On OS-X, binaries can be "universal" -- what this means i

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-05-31 Thread Daniel Holth
Wheel already supports compound tags. Just like py2.py3-none-any a tag py3-none-x86.ppc (with real platform names) would work. Does that make sense for Mac? On May 31, 2013 6:30 PM, "Chris Barker - NOAA Federal" < chris.bar...@noaa.gov> wrote: > HI Folks, > > A few of us over on the pythonmac list

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-02 Thread Ned Deily
In article , Daniel Holth wrote: > On May 31, 2013 6:30 PM, "Chris Barker - NOAA Federal" < > chris.bar...@noaa.gov> wrote: > > On OS-X, binaries can be "universal" -- what this means is that they > > have more than one binary architecture embedded in a single file; the > > system selects the ri

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-03 Thread Chris Barker - NOAA Federal
On Fri, May 31, 2013 at 3:38 PM, Daniel Holth wrote: > Wheel already supports compound tags. Just like py2.py3-none-any a tag Is this from PEP 425? It's still a little unclear to me exactly how those tags are to be used, but, yes, this seems to be the right direction. > py3-none-x86.ppc (with re

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-03 Thread Chris Barker - NOAA Federal
And Ned, Thanks for your offer to write something up -- looking forward to it. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-03 Thread Daniel Holth
On Mon, Jun 3, 2013 at 12:25 PM, Chris Barker - NOAA Federal wrote: > On Fri, May 31, 2013 at 3:38 PM, Daniel Holth wrote: >> Wheel already supports compound tags. Just like py2.py3-none-any a tag > > Is this from PEP 425? It's still a little unclear to me exactly how > those tags are to be used,

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-03 Thread Chris Barker - NOAA Federal
Darn! this slipped off the list -- I hate it when lists aren't set with the reply-to address as the list... On Mon, Jun 3, 2013 at 3:47 PM, Daniel Holth wrote: > ppc is not completely dead? I have one under my desk, though truth be told, I haven't turned it on in a good while... Which is a good

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-03 Thread Daniel Holth
On Mon, Jun 3, 2013 at 6:56 PM, Chris Barker - NOAA Federal wrote: > Darn! this slipped off the list -- I hate it when lists aren't set > with the reply-to address as the list... > > On Mon, Jun 3, 2013 at 3:47 PM, Daniel Holth wrote: >> ppc is not completely dead? > > I have one under my desk, t

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-04 Thread Ronald Oussoren
On 31 May, 2013, at 22:17, Chris Barker - NOAA Federal wrote: > HI Folks, > > A few of us over on the pythonmac list have been hashing out how best > to support binary packages on OS-X. The binary wheel option seems very > promising. > > However, there is one Mac-specific issue that does not

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-04 Thread Chris Barker - NOAA Federal
On Tue, Jun 4, 2013 at 1:23 AM, Ronald Oussoren wrote: > This isn't really a problem, distutils uses labels for the set of supported > architectures as the architecture label in binary distributions (e.g. > pyobjc_core-2.5-py3.4-macosx-10.8-intel.egg for an egg that supports the > 'intel' set

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-04 Thread Chris Barker - NOAA Federal
On Mon, Jun 3, 2013 at 3:47 PM, Daniel Holth wrote: > That would make sense. Can you come up with code to detect that a > newly compiled extension is universal, and that a Python is? It looks like distutils.util.get_platform() now does the right thing for knowing what the currently running pyton

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-04 Thread Ronald Oussoren
On 4 Jun, 2013, at 18:35, Chris Barker - NOAA Federal wrote: > On Mon, Jun 3, 2013 at 3:47 PM, Daniel Holth wrote: > >> That would make sense. Can you come up with code to detect that a >> newly compiled extension is universal, and that a Python is? > > It looks like distutils.util.get_platf

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-04 Thread Daniel Holth
On Tue, Jun 4, 2013 at 12:55 PM, Ronald Oussoren wrote: > > On 4 Jun, 2013, at 18:35, Chris Barker - NOAA Federal > wrote: > >> On Mon, Jun 3, 2013 at 3:47 PM, Daniel Holth wrote: >> >>> That would make sense. Can you come up with code to detect that a >>> newly compiled extension is universal,

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-04 Thread Ronald Oussoren
On 4 Jun, 2013, at 18:27, Chris Barker - NOAA Federal wrote: > On Tue, Jun 4, 2013 at 1:23 AM, Ronald Oussoren > wrote: > >> This isn't really a problem, distutils uses labels for the set of supported >> architectures as the architecture label in binary distributions (e.g. >> pyobjc_core-2

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-04 Thread Chris Barker - NOAA Federal
On Tue, Jun 4, 2013 at 10:06 AM, Ronald Oussoren wrote: >>> This is not ideal, but works good enough for now. In the long run this >>> should likely be replaced by the compressed tags sets from PEP 425 (at the >>> cost of a much longer file names). >> >> I think now may be the "long run". > > Ma

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-04 Thread Chris Barker - NOAA Federal
On Tue, Jun 4, 2013 at 9:55 AM, Ronald Oussoren wrote: >> $ otool -L python >> python (architecture ppc): >> /Library/Frameworks/Python.framework/Versions/2.7/Python >> (compatibility version 2.7.0, current version 2.7.0) >> /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current

Re: [Distutils] Binary Wheels and "universal" builds on OS-X

2013-06-04 Thread Ronald Oussoren
On 4 Jun, 2013, at 23:53, Chris Barker - NOAA Federal wrote: > On Tue, Jun 4, 2013 at 9:55 AM, Ronald Oussoren > wrote: > >>> $ otool -L python >>> python (architecture ppc): >>> /Library/Frameworks/Python.framework/Versions/2.7/Python >>> (compatibility version 2.7.0, current version 2