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

Marius Shekow marius.shekow at fit.fraunhofer.de
Mon Apr 11 09:50:19 BST 2016


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


More information about the PyQt mailing list