Debian Codegraph @

debian/patches/0009-Add-Debian-specific-SIP-path.patch

raw
1 From: YOKOTA Hiroshi <[email protected]>
2 Date: Sat, 23 Oct 2021 19:30:55 +0900
3 Subject: Add Debian specific SIP path
4
5 Forwarded: not-needed
6
7 Debian uses "dist-packages" instead of "site-packages".
8
9 https://wiki.debian.org/Python
10 > dist-packages instead of site-packages. Third party Python software
11 > installed from Debian packages goes into dist-packages, not
12 > site-packages. This is to reduce conflict between the system Python,
13 > and any from-source Python build you might install manually.
14
15 https://www.riverbankcomputing.com/static/Docs/sip/directives.html#std-directive-Import
16 > If this also fails then SIP prepends name with each of the directories,
17 > in turn, specified by the sip-include-dirs value of the project section
18 > in pyproject.toml.
19 ---
20 setup/build.py | 1 +
21 1 file changed, 1 insertion(+)
22
23 diff --git a/setup/build.py b/setup/build.py
24 index 3d43f02..5b78111 100644
25 --- a/setup/build.py
26 +++ b/setup/build.py
27 @@ -729,6 +729,7 @@ project-factory = "pyqtbuild:PyQtProject"
28 [tool.sip.project]
29 sip-files-dir = "."
30 {abi_version}
31 +sip-include-dirs = ["/usr/lib/python3/dist-packages/PyQt6/bindings"]
32
33 [project]
34 name = "{ext.name}"