[PyQt] Best approach to include .so library in pyqtdeployed app on OS X

Robert Kent rob at gulon.co.uk
Mon Apr 11 10:13:14 BST 2016


Hi Marius,

Follow the same procedure as for Windows and place the .so file next to 
the app binary in <APP>.app/Contents/MacOS. I do this with all the numpy 
and scipy objects for example and it works great and without modification.

Cheers, Rob

On 11/04/2016 09:50, Marius Shekow wrote:
> Hi,
>
> we're building a Python 3.5 + PyQt5 application for Windows and Mac OS 
> X. One of the libraries used by our app is pycurl. Installing pycurl 
> via pip (or building it ourself without further looking into the build 
> scripts) simply downloads a binary package (placed in 
> lib/site-packages/pycurl.cp35-win32.pyd on Windows, 
> lib/site-packages/pycurl.cpython-35m-darwin.so  on OS X). This file 
> seems to include the compiled native curl library as well as the 
> pycurl Python bindings.
>
> Deploying our pyqtdeploy'ed application on Windows wasn't a problem (I 
> copied pycurl.cp35-win32.pyd to "pycurl.pyd" and placed it next to the 
> .exe binary).
>
> My question is: how to deploy such a package on OS X with pyqtdeploy? 
> Is that possible without modifying the build procedure (i.e. simply 
> using the .so file) of pycurl? Or do we have to build pycurl 
> differently, e.g. as dylib?
>
> Thanks and best regards,
> Marius Shekow
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list