[PyQt] pyqtdeploy: include C-extension with multiple source files

Phil Thompson phil at riverbankcomputing.com
Sat Jul 16 16:26:03 BST 2016


On 14 Jul 2016, at 4:57 pm, Thijs Triemstra <lists at collab.nl> wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> I'm trying to include a Python C-extension with pyqtdeploy that
> consists of multiple .c files, e.g.:
> 
> [Extension('RPi._GPIO', ['source/py_gpio.c', 'source/c_gpio.c',
> 'source/cpuinfo.c', 'source/event_gpio.c', 'source/soft_pwm.c',
> 'source/py_pwm.c', 'source/common.c', 'source/constants.c'])
> 
> How do I configure pyqtdeploy to compile multiple source files into a
> single extension? The SOURCES box in the pyqtdeploy GUI only accepts a
> single file...

You need to build it externally and tell pyqtdeploy about the static library.

Phil


More information about the PyQt mailing list