File: 0011-Add-Debian-specific-SIP-path.patch

package info (click to toggle)
calibre 6.13.0%2Brepack-2%2Bdeb12u5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,147,768 kB
  • sloc: python: 461,364; ansic: 80,698; cpp: 18,081; javascript: 2,855; xml: 1,297; sh: 892; sql: 683; objc: 544; makefile: 71; perl: 66; sed: 6
file content (34 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: YOKOTA Hiroshi <yokota.hgml@gmail.com>
Date: Sat, 23 Oct 2021 19:30:55 +0900
Subject: Add Debian specific SIP path

Forwarded: not-needed

Debian uses "dist-packages" instead of "site-packages".

https://wiki.debian.org/Python
> dist-packages instead of site-packages. Third party Python software
> installed from Debian packages goes into dist-packages, not
> site-packages. This is to reduce conflict between the system Python,
> and any from-source Python build you might install manually.

https://www.riverbankcomputing.com/static/Docs/sip/directives.html#std-directive-Import
> If this also fails then SIP prepends name with each of the directories,
> in turn, specified by the sip-include-dirs value of the project section
> in pyproject.toml.
---
 setup/build.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/setup/build.py b/setup/build.py
index 74f6ebc..2b1154e 100644
--- a/setup/build.py
+++ b/setup/build.py
@@ -675,6 +675,7 @@ project-factory = "pyqtbuild:PyQtProject"
 [tool.sip.project]
 sip-files-dir = "."
 {abi_version}
+sip-include-dirs = ["/usr/lib/python3/dist-packages/PyQt6/bindings"]
 
 [tool.sip.bindings.{ext.name}]
 headers = {ext.headers}