[PySide] Install via pip fails on OS X Mavericks

Christian Tismer tismer at stackless.com
Mon Apr 14 03:11:38 CEST 2014


Hi, oh-oh...

On 13.04.14 23:27, Matthew Brett wrote:
> Hi,
>
> On Sun, Apr 13, 2014 at 12:07 PM, Christian Tismer <tismer at stackless.com> wrote:
>> Hi guys,
>>
>> I have built both eggs and wheels for PySide on Mountain Lion and
>> Mavericks.
>>
>> Using the latest XCode, I could not manage to change
>> MACOSX_DEPLOYMENT_TARGET.
>> When changing that to something like 10.6, I always get the complaint that
>>
>> distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET
>> mismatch: now "10.6" but "10.9" during configure
>>
>> So I ended up with doing all builds without setting that, once on 10.9,
>> and once on a virtual 10.8. But all eggs and wheels are working fine.
>>
>> It is probably a bit redundant, but for sure very correct to use such
>> exacly built wheels.
> The trick is to build the wheels with the Python.org python, which
> declares its SDK as 10.6.

Yes, I saw that now:
I used homebrew python without thinking.
And sure, whenever I build Python myself, I do use the 10.6 setting.

Now I understood that this setting defines the minimum for extension
modules, and PySide still is one. Forgot that completely, because
it compiles so long.

After looking into the Cellar, everything was clear: :-)

/usr/local/Cellar/python3/3.4.0_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/_sysconfigdata.py:
'MACOSX_DEPLOYMENT_TARGET': '10.9',

This setting is inserted unconditionally from the OS version in the
python formula. Yay!

>
> You can then rename the wheels if you want them to install on - say -
> system python, etc - see the page and the PEP for details.
>
> Here are some wheels suitable renamed so they will install into the
> most common combinations of Python source / OSX version:
>
> http://kerbin.bic.berkeley.edu/wheelhouse/
>
> I don't know of any ABI compatibility issues - there are links in the
> page I pointed to, with discussion about that, but I don't think these
> worries were well founded.
>
> Of course, the best thing is to test...
>

So, the versions that I built are fine, just a bit over-done.

Well, these versions also minimize possible incompatibilities ;-)

Thank you for solving the knot in my head.

Btw., I was not aware that the wheels may be just renamed. I assumed
that some more knowledge is sitting inside to verify the right version.
Sadly, things are way more primitive that I hoped for.

cheers & thanks -- Chris

-- 
Christian Tismer             :^)   <mailto:tismer at stackless.com>
Software Consulting          :     Have a break! Take a ride on Python's
Karl-Liebknecht-Str. 121     :    *Starship* http://starship.python.net/
14482 Potsdam                :     PGP key -> http://pgp.uni-mainz.de
phone +49 173 24 18 776  fax +49 (30) 700143-0023
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/




More information about the PySide mailing list