[PyQt] pyqtdeploy docs say static python default on OSX, but can't find
Phil Thompson
phil at riverbankcomputing.com
Fri May 9 22:17:56 BST 2014
On 09/05/2014 9:59 pm, bootch at nc.rr.com wrote:
> The pyqtdeploy tutorial says 'Note that a static, native build of
> Python is the default on these platforms.' (meaning OSX and Linux)
> Does this mean that if you use the Python installer to OSX (a .dmg)
> that the static library should exist?
No, it means that when you build it yourself you will get a static build
by default.
> If so, I couldn't find it. I
> was looking for a libPython3.a file, but only found
> /Library/Frameworks/Python.framework/Versions/3.4/lib/libpython3.4m.dylib
> which actually is a link to ...3.4/Python, and which I assume is a
> dynamic library. I question the documentation.
>
> When I pointed Locations>Target Python Locations>Python library to
> 3.4/Python, pyqtdeploy complained that there was no version number in
> the string. After making a copy renamed Python3 and pointing
> pyqtdeploy to it, the build failed to find -lPython3. This as an
> example of the flailing that users may do, self flagellating wankers
> that we are.
>
> The tutorial seems to use OSX, and does seem to use a user-built
> statically built Python, so I will build a static version myself.
>
> I suppose that command line version of Python is not the same as the
> Python library (linked as a library into a c program?)
Using pyqtdeploy at all doesn't make much sense unless you build your
own static Python library. The next version of pyqtdeploy will include
(or maybe generate) a .pro file for building a static Python library.
Phil
More information about the PyQt
mailing list