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

package info (click to toggle)
calibre 8.5.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 431,828 kB
  • sloc: python: 450,752; ansic: 87,218; javascript: 57,667; cpp: 18,719; xml: 1,244; sh: 935; sql: 735; objc: 330; makefile: 68; sed: 3
file content (34 lines) | stat: -rw-r--r-- 1,155 bytes parent folder | download
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 00c4fae..47ba003 100644
--- a/setup/build.py
+++ b/setup/build.py
@@ -684,6 +684,7 @@ project-factory = "pyqtbuild:PyQtProject"
 [tool.sip.project]
 sip-files-dir = "."
 {abi_version}
+sip-include-dirs = ["/usr/lib/python3/dist-packages/PyQt6/bindings"]
 
 [project]
 name = "{ext.name}"