Per-platofrm scopes in pyproject.toml

Phil Thompson phil at riverbankcomputing.com
Tue Oct 6 21:31:23 BST 2020


On 06/10/2020 19:09, Patrick Stinson wrote:
> How does one specify which platform a setting is for in
> pyproject.toml? I can’t find this in the sip docs or PRP 518 spec.
> 
> For example, I have a module source file that is only for Mac, and
> another for windows, something like:
> 
> [win#tool.sip.bindings._pkdiagram]
> sources = [ "unsafearea.cpp", "_pkdiagram.cpp", "_pkdiagram_win32.cpp" 
> ]
> 
> [mac#tool.sip.bindings._pkdiagram]
> sources = [ "unsafearea.cpp", "_pkdiagram.cpp", "_pkdiagram_mac.mm" ]

Plenty of examples here...

https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/sysroot.html#the-pyqt-demo-sysroot

Phil


More information about the PyQt mailing list