Update patch

This commit is contained in:
Susi Lehtola 2021-11-26 18:42:22 +00:00
parent 81143c0397
commit 752195cd0b
2 changed files with 6 additions and 13 deletions

View File

@ -1,14 +1,9 @@
diff -up pybind11-2.6.1/pybind11/commands.py.hpath pybind11-2.6.1/pybind11/commands.py diff -up pybind11-2.8.1/pybind11/commands.py.hpath pybind11-2.8.1/pybind11/commands.py
--- pybind11-2.6.1/pybind11/commands.py.hpath 2020-11-11 22:33:21.000000000 +0100 --- pybind11-2.8.1/pybind11/commands.py.hpath 2021-11-26 18:39:36.765399461 +0000
+++ pybind11-2.6.1/pybind11/commands.py 2020-11-12 13:22:07.355000414 +0100 +++ pybind11-2.8.1/pybind11/commands.py 2021-11-26 18:40:24.924543543 +0000
@@ -1,22 +1,8 @@ @@ -5,17 +5,7 @@ DIR = os.path.abspath(os.path.dirname(__
# -*- coding: utf-8 -*-
import os
-
-DIR = os.path.abspath(os.path.dirname(__file__))
-
-
def get_include(user=False): def get_include(user=False):
- # type: (bool) -> str - # type: (bool) -> str
- installed_path = os.path.join(DIR, "include") - installed_path = os.path.join(DIR, "include")
@ -26,5 +21,3 @@ diff -up pybind11-2.6.1/pybind11/commands.py.hpath pybind11-2.6.1/pybind11/comma
- msg = "pybind11 not installed, installation required to access the CMake files" - msg = "pybind11 not installed, installation required to access the CMake files"
- raise ImportError(msg) - raise ImportError(msg)
+ return '/usr/share/cmake/pybind11' + return '/usr/share/cmake/pybind11'
diff -up pybind11-2.6.1/pybind11/__init__.py.hpath pybind11-2.6.1/pybind11/__init__.py
diff -up pybind11-2.6.1/pybind11/__main__.py.hpath pybind11-2.6.1/pybind11/__main__.py

View File

@ -26,7 +26,7 @@ URL: https://github.com/pybind/pybind11
Source0: https://github.com/pybind/pybind11/archive/refs/tags/v%{version}.tar.gz Source0: https://github.com/pybind/pybind11/archive/refs/tags/v%{version}.tar.gz
# Patch out header path # Patch out header path
Patch1: pybind11-2.6.1-hpath.patch Patch1: pybind11-2.8.1-hpath.patch
BuildRequires: make BuildRequires: make
%if %{python2_enabled} %if %{python2_enabled}