Blame SOURCES/pybind11-2.6.1-hpath.patch

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