[PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)

William Kyngesburye woklist at kyngchaos.com
Fri Jun 28 00:59:26 BST 2013

PyQt should be picking the spec from SIP (unless PyQt 5 changed that).  You can specify the spec when compiling SIP with the option:

-p macx-g++

if that doesn't work when compiling PyQt, try:

-p macx-llvm

It's odd though, even on OS X 10.7, I get macx-g++ as the default for SIP.

If PyQt 5 ignores SIP for the spec, maybe there's a similar option when compiling PyQt 5 to set the spec.

On Jun 27, 2013, at 10:22 AM, Anzir Boodoo wrote:

> William,
> On 27 Jun 2013, at 15:40, William Kyngesburye wrote:
>> Xcode on OSX 10.6 doesn't have clang++, all c++ is handled directly in "clang", though I think the early versions of clang here don't fully support c++.  You're better off with llvm-g++.  Xcode added clang++ in later versions starting with Lion. 
>> You should try to use a different qmake spec, either macx-g++ or macx-llvm.
> Really sorry about this, but I'm a bit of a newbie to XCode's ways...
> In PyQt's configure.py there is this:
>>        # The binary MacOS/X Qt installer defaults to XCode.  If this is what
>>        # we might have then use macx-clang.
>> if sys.platform == 'darwin':
>>            if qt_config.QMAKE_SPEC == 'macx-xcode':
>>                # This will exist (and we can't check anyway).
>>                self.qmake_spec = 'macx-clang'
>>            else:
>>                # No need to explicitly name the default.
>>                self.qmake_spec = ''
> I guess this is referring to some configuration file in Qt
> Can I just replace 'macx-clang' with 'macx-llvm' here?
> Thanks
> -- 
> Anzir Boodoo, PhD student
> The Institute for Transport Studies, The University of Leeds, LEEDS LS2 9JT
> QUEEN'S ANNIVERSARY PRIZE WINNERS - 'sustained transport excellence' - www.its.leeds.ac.uk/queensprize
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable.  There is another theory which states that this has already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro

More information about the PyQt mailing list