Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Christian Tismer
On 19.10.13 03:22, Nick Coghlan wrote: On 19 Oct 2013 04:59, "Chris Barker" > wrote: > > Someone on another list indicated that pip installing binary wheels > from PyPi will ONLY work for Windows. > > Is that the case? I think it's desperately needed for OS-X as w

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Daniel Holth
On Fri, Nov 1, 2013 at 6:39 AM, Christian Tismer wrote: > On 19.10.13 03:22, Nick Coghlan wrote: > > > On 19 Oct 2013 04:59, "Chris Barker" wrote: >> >> Someone on another list indicated that pip installing binary wheels >> from PyPi will ONLY work for Windows. >> >> Is that the case? I think it'

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Ronald Oussoren
On Oct 31, 2013, at 07:24 PM, Donald Stufft wrote: On Oct 31, 2013, at 1:15 PM, Ronald Oussoren wrote: Is it "just" a matter of researching if the various build options on OSX really lead to binaries with the same ABI, or is more work needed? Basically it’s this: I was to

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Paul Moore
On 1 November 2013 13:41, Ronald Oussoren wrote: > > If you build a Wheel with Homebrew Python will it work on the official OSX > installers? What if I have a library installed from Homebrew? Essentially > trying to figure out how likely it is that with the existing tags a wheel is > going to work

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Chris Barker
On Fri, Nov 1, 2013 at 6:59 AM, Paul Moore wrote: > The key point here is the granularity of the PEP 425 tags used by wheel. > > The risk is that a wheel created on another system might declare (via > its filename) that it is compatible with your system, and then not be, > causing segfaults or si

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Paul Moore
On 1 November 2013 15:48, Chris Barker wrote: > On Fri, Nov 1, 2013 at 6:59 AM, Paul Moore wrote: >> >> The key point here is the granularity of the PEP 425 tags used by wheel. >> >> The risk is that a wheel created on another system might declare (via >> its filename) that it is compatible with

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Christian Tismer
On 01.11.13 13:34, Daniel Holth wrote: On Fri, Nov 1, 2013 at 6:39 AM, Christian Tismer wrote: On 19.10.13 03:22, Nick Coghlan wrote: On 19 Oct 2013 04:59, "Chris Barker" wrote: Someone on another list indicated that pip installing binary wheels from PyPi will ONLY work for Windows. Is tha

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Greg Ewing
Chris Barker wrote: anyone putting a [MacOSX] binary on PyPi has an obligation to built is so it will work with the python.org python -- and it's not inherently any harder to do that than on Windows Is there some way that a wheel could be checked to make sure it doesn't de

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Greg Ewing
Paul Moore wrote: Python version - cpXY Platform - distutils.util.get_platform(), which is "darwin" for OSX, if I'm reading the code correctly. ABI - essentially sysconfig.get_config_vars().get('SOABI') if that exists Does the MAXOSX_DEPLOYMENT_TARGET figure into this anywhere? Just knowing tha

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Donald Stufft
On Nov 1, 2013, at 6:35 PM, Greg Ewing wrote: > Paul Moore wrote: >> Python version - cpXY >> Platform - distutils.util.get_platform(), which is "darwin" for OSX, >> if I'm reading the code correctly. >> ABI - essentially sysconfig.get_config_vars().get('SOABI') if that exists > > Does the MAXO

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Paul Moore
On 1 November 2013 22:36, Donald Stufft wrote: > python -c "import distutils; print(distutils.util.get_platform().replace('.', > '_').replace('-', '_'))" > macosx_10_8_x86_64 OK, cool. That means that binary wheels will be specific to the OSX version and the word size. Even more specific than W

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Donald Stufft
On Nov 1, 2013, at 6:49 PM, Paul Moore wrote: > On 1 November 2013 22:36, Donald Stufft wrote: > >> python -c "import distutils; >> print(distutils.util.get_platform().replace('.', '_').replace('-', '_'))" >> macosx_10_8_x86_64 > > OK, cool. That means that binary wheels will be specific to

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Paul Moore
On 1 November 2013 22:51, Donald Stufft wrote: > How can I get the SOABI? Sorry, didn't I include that before? sysconfig.get_config_var('SOABI') should do it. Paul ___ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Donald Stufft
On Nov 1, 2013, at 6:57 PM, Paul Moore wrote: > On 1 November 2013 22:51, Donald Stufft wrote: >> How can I get the SOABI? > > Sorry, didn't I include that before? > > sysconfig.get_config_var('SOABI') > > should do it. > Paul Hmm, python -c "import sysconfig; print(sysconfig.get_config_va

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Donald Stufft
Looks like wheels are not being created with an ABI tag at all. Here’s a Wheel I made to test things: https://testpypi.python.org/pypi/PyNaCl On Nov 1, 2013, at 6:58 PM, Donald Stufft wrote: > > On Nov 1, 2013, at 6:57 PM, Paul Moore wrote: > >> On 1 November 2013 22:51, Donald Stufft wrot

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Greg Ewing
Donald Stufft wrote: python -c "import distutils; print(distutils.util.get_platform().replace('.', '_').replace('-', '_'))" macosx_10_8_x86_64 Hmm, this just appears to reflect the version of MacOSX that the Python running distutils was built on, or is running on (not sure which). This is not

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Paul Moore
On 1 November 2013 22:58, Donald Stufft wrote: > python -c "import sysconfig; print(sysconfig.get_config_var('SOABI’))" > None That implies no explicit ABI tag - the platform and Python version tags are deemed sufficient to ensure interoperability. Paul __

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Paul Moore
On 1 November 2013 23:10, Greg Ewing wrote: > Will there be a mechanism to get the actual MacOSX version > needed into the metadata, rather than the one you happen > to be building on? There can be anything - the question here is really whether anything is *needed*, or is what we have sufficient.

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Ned Deily
In article <527434d6.9020...@canterbury.ac.nz>, Greg Ewing wrote: > Donald Stufft wrote: > > python -c "import distutils; > > print(distutils.util.get_platform().replace('.', '_').replace('-', '_'))" > > macosx_10_8_x86_64 > > Hmm, this just appears to reflect the version of MacOSX > that the

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Ned Deily
In article <5b1e4ff5-1107-4e85-b0ac-f29461cee...@stufft.io>, Donald Stufft wrote: > Looks like wheels are not being created with an ABI tag at all. IIRC, distutils.util.get_platform() was not modified to reflect the SOABI when that feature was introduced in Python 3.2 (?). Perhaps it should h

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Donald Stufft
On Nov 1, 2013, at 8:39 PM, Ned Deily wrote: > In article <5b1e4ff5-1107-4e85-b0ac-f29461cee...@stufft.io>, > Donald Stufft wrote: > >> Looks like wheels are not being created with an ABI tag at all. > > IIRC, distutils.util.get_platform() was not modified to reflect the SOABI > when > that

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Nick Coghlan
On 2 Nov 2013 09:15, "Paul Moore" wrote: > > On 1 November 2013 23:10, Greg Ewing wrote: > > Will there be a mechanism to get the actual MacOSX version > > needed into the metadata, rather than the one you happen > > to be building on? > > There can be anything - the question here is really wheth

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Donald Stufft
On Nov 1, 2013, at 8:45 PM, Nick Coghlan wrote: > > On 2 Nov 2013 09:15, "Paul Moore" wrote: > > > > On 1 November 2013 23:10, Greg Ewing wrote: > > > Will there be a mechanism to get the actual MacOSX version > > > needed into the metadata, rather than the one you happen > > > to be building

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Nick Coghlan
On 2 Nov 2013 11:10, "Donald Stufft" wrote: > > > On Nov 1, 2013, at 8:45 PM, Nick Coghlan wrote: > >> >> On 2 Nov 2013 09:15, "Paul Moore" wrote: >> > >> > On 1 November 2013 23:10, Greg Ewing wrote: >> > > Will there be a mechanism to get the actual MacOSX version >> > > needed into the metad

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Donald Stufft
On Nov 1, 2013, at 9:56 PM, Nick Coghlan wrote: > > On 2 Nov 2013 11:10, "Donald Stufft" wrote: > > > > > > On Nov 1, 2013, at 8:45 PM, Nick Coghlan wrote: > > > >> > >> On 2 Nov 2013 09:15, "Paul Moore" wrote: > >> > > >> > On 1 November 2013 23:10, Greg Ewing wrote: > >> > > Will there be

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Chris Barker
On Fri, Nov 1, 2013 at 5:45 PM, Nick Coghlan wrote: > * the key relevant points about users on Windows and Mac OS X are that > most (perhaps only many on Mac OS X) tutorials and introductory courses > will direct them to the binary installers on python.org, and such users > are highly unlikely to

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Nick Coghlan
On 2 Nov 2013 11:59, "Donald Stufft" wrote: > > > On Nov 1, 2013, at 9:56 PM, Nick Coghlan wrote: > >> >> On 2 Nov 2013 11:10, "Donald Stufft" wrote: >> > >> > >> > On Nov 1, 2013, at 8:45 PM, Nick Coghlan wrote: >> > >> >> >> >> On 2 Nov 2013 09:15, "Paul Moore" wrote: >> >> > >> >> > On 1 No

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Marcus Smith
> > > Wheels take precedence over sdists. > also, for those that don't know, pip also prioritizes wheels over other wheels (using the same PEP425 module that the wheel project uses, which has a sort order). In short, plat-specific over python-specific, over general wheels. not a very likely scenar

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Marcus Smith
> If someone adds a new dependency, they should be able to easily say "build > anything that I don't already have a local wheel file for from source". > "pip wheel -r requirements.txt" will blindly rebuild wheels for all your dependencies, regardless of it being in your wheel dir already. it's bee

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Marcus Smith
> > > The “local wheel” path isn’t the greatest right now, but to do this > > # Assumes you’ve already populated the wheelhouse with pip wheel > pip install —find-links ~/.pip/wheelhouse whatever > > fwiw, I found one of the discussions we had ~year ago about "wheel caching". https://github.com/py

Re: [Distutils] Plans for binary wheels, and PyPi and OS-X

2013-11-01 Thread Marcus Smith
> > > One question: should pip be able to install a incompatible binary wheel > directly without even a warning? It does now, but I don't think it should. > pip does confirm the wheel file is compatible with your platform/python (based on the file tags), when downloading from indexes and links. BU