File: 0001-Hardcode-path-to-nanobind-installation.patch

package info (click to toggle)
nanobind 2.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 3,060 kB
  • sloc: cpp: 11,838; python: 5,862; ansic: 4,820; makefile: 22; sh: 15
file content (27 lines) | stat: -rw-r--r-- 855 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
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Sat, 6 Apr 2024 01:20:15 +0200
Subject: Hardcode path to nanobind installation

Forwarded: not-needed
---
 src/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/__init__.py b/src/__init__.py
index 43b1e26..878dd9d 100644
--- a/src/__init__.py
+++ b/src/__init__.py
@@ -10,11 +10,11 @@ def source_dir() -> str:
 
 def include_dir() -> str:
     "Return the path to the nanobind include directory"
-    return os.path.join(os.path.abspath(os.path.dirname(__file__)), "include")
+    return "/usr/share/nanobind/include"
 
 def cmake_dir() -> str:
     "Return the path to the nanobind CMake module directory."
-    return os.path.join(os.path.abspath(os.path.dirname(__file__)), "cmake")
+    return "/usr/share/nanobind/cmake"
 
 __version__ = "2.9.2"