Blame SOURCES/pybind11-2.6.1-hpath.patch

cf8fd1
diff -up pybind11-2.6.1/pybind11/commands.py.hpath pybind11-2.6.1/pybind11/commands.py
cf8fd1
--- pybind11-2.6.1/pybind11/commands.py.hpath	2020-11-11 22:33:21.000000000 +0100
cf8fd1
+++ pybind11-2.6.1/pybind11/commands.py	2020-11-12 13:22:07.355000414 +0100
cf8fd1
@@ -1,22 +1,8 @@
cf8fd1
 # -*- coding: utf-8 -*-
cf8fd1
 import os
cf8fd1
 
cf8fd1
-
cf8fd1
-DIR = os.path.abspath(os.path.dirname(__file__))
cf8fd1
-
cf8fd1
-
cf8fd1
 def get_include(user=False):
cf8fd1
-    # type: (bool) -> str
cf8fd1
-    installed_path = os.path.join(DIR, "include")
cf8fd1
-    source_path = os.path.join(os.path.dirname(DIR), "include")
cf8fd1
-    return installed_path if os.path.exists(installed_path) else source_path
cf8fd1
-
cf8fd1
+    return '/usr/include/pybind11'
cf8fd1
 
cf8fd1
 def get_cmake_dir():
cf8fd1
-    # type: () -> str
cf8fd1
-    cmake_installed_path = os.path.join(DIR, "share", "cmake", "pybind11")
cf8fd1
-    if os.path.exists(cmake_installed_path):
cf8fd1
-        return cmake_installed_path
cf8fd1
-    else:
cf8fd1
-        msg = "pybind11 not installed, installation required to access the CMake files"
cf8fd1
-        raise ImportError(msg)
cf8fd1
+    return '/usr/share/cmake/pybind11'
cf8fd1
diff -up pybind11-2.6.1/pybind11/__init__.py.hpath pybind11-2.6.1/pybind11/__init__.py
cf8fd1
diff -up pybind11-2.6.1/pybind11/__main__.py.hpath pybind11-2.6.1/pybind11/__main__.py