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

Phil Thompson phil at riverbankcomputing.com
Mon Apr 11 10:07:40 BST 2016


On 11 Apr 2016, at 9:50 am, Marius Shekow <marius.shekow at fit.fraunhofer.de> 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?

Try it and see. I would imagine that it would be packaged in a similar way on all platforms.

Phil


More information about the PyQt mailing list