Adding custom sip project to pyqtdeploy project

Patrick Stinson patrickkidd at
Mon Oct 17 15:17:26 BST 2022

What is the correct way to add a custom sip extension module to a
pyqtdeploy project?

My python/cpython sip module is in a subdir of the pyqt-demo project (the
subdir called "cpythononly" here: and it builds and runs in
the local venv with sip-install. I added an entry in sysroot.toml and
checked the box for the private c/c++ sub-module under "Packages" in the
pyqtdeploy app. pyqtdeploy-build complains that it can't find the
sip-generated cpp sources for the module:

Undefined symbols for architecture x86_64:
  "_PyInit__cpythononly", referenced from:
      extension_modules in pyqtdeploy_main.o
ld: symbol(s) not found for architecture x86_64

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the PyQt mailing list