Blame SOURCES/pybind11-2.6.1-hpath.patch

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