Per-platofrm scopes in pyproject.toml

Patrick Stinson patrickkidd at gmail.com
Tue Oct 6 19:09:05 BST 2020


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" ]

Thanks!


More information about the PyQt mailing list