[PyQt] pyqtdeploy: Adding complex third-party extensions

Patrick Stinson patrickkidd at gmail.com
Thu Feb 14 16:01:01 GMT 2019


Phil,

For reference while writing this feature, the Crypto module compiles.so binaries that it then dynamically loads the symbols for using ffi via its own python loader code. I imagine that adds complications to your plan.

-Patrick

> On Feb 2, 2019, at 3:53 AM, Patrick Stinson <patrickkidd at gmail.com> wrote:
> 
> 
> 
>> On Feb 2, 2019, at 1:46 AM, Phil Thompson <phil at riverbankcomputing.com> wrote:
>> 
>> On 1 Feb 2019, at 8:50 am, Patrick Stinson <patrickkidd at gmail.com> wrote:
>>> 
>>> Hello,
>>> 
>>> What is the recommended way to add a rather complex Python/CPython extension module to a pyqtdeploy project? Is it to manually add the python files under “Other Packages” and the C files under “Other Extension Modules”?
>> 
>> Yes.
>> 
>>> Or maybe add the C files under the qmake config?
>>> 
>>> I want to add pycryptodome, which uses both python and C files. It’s setup.py is attached.
>> 
>> I plan to tie pyqtdeploy and the sysroot closer together in a future release. A sysroot will contain meta-data about what it contains, its dependencies and (if necessary) how it is configured. You will then just be able to pick a package from a list as you currently do with the PyQt modules.
>> 
> 
> Wow, that is quite a stout goal. I will be happy to see how you implement it, especially considering how strict you have always appeared to be about principled design. Good luck!
> 
>> Phil
> 


More information about the PyQt mailing list