Blame SOURCES/pybind11-2.10.1-hpath.patch

0d9d4c
diff -uNr pybind11-2.10.1.bak/pybind11/commands.py pybind11-2.10.1/pybind11/commands.py
0d9d4c
--- pybind11-2.10.1.bak/pybind11/commands.py	2022-11-07 15:25:26.651515082 -0600
0d9d4c
+++ pybind11-2.10.1/pybind11/commands.py	2022-11-07 15:27:01.574703289 -0600
0d9d4c
@@ -8,22 +8,13 @@
0d9d4c
     Return the path to the pybind11 include directory. The historical "user"
0d9d4c
     argument is unused, and may be removed.
0d9d4c
     """
0d9d4c
-    installed_path = os.path.join(DIR, "include")
0d9d4c
-    source_path = os.path.join(os.path.dirname(DIR), "include")
0d9d4c
-    return installed_path if os.path.exists(installed_path) else source_path
0d9d4c
-
0d9d4c
+    return '/usr/include/pybind11'
0d9d4c
 
0d9d4c
 def get_cmake_dir() -> str:
0d9d4c
     """
0d9d4c
     Return the path to the pybind11 CMake module directory.
0d9d4c
     """
0d9d4c
-    cmake_installed_path = os.path.join(DIR, "share", "cmake", "pybind11")
0d9d4c
-    if os.path.exists(cmake_installed_path):
0d9d4c
-        return cmake_installed_path
0d9d4c
-
0d9d4c
-    msg = "pybind11 not installed, installation required to access the CMake files"
0d9d4c
-    raise ImportError(msg)
0d9d4c
-
0d9d4c
+    return '/usr/share/cmake/pybind11'
0d9d4c
 
0d9d4c
 def get_pkgconfig_dir() -> str:
0d9d4c
     """