Blame SOURCES/pybind11-2.6.1-hpath.patch

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