Blame SOURCES/pybind11-2.10.1-hpath.patch

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