forked from pool/python-python-poppler
Accepting request 839768 from home:frispete:python
Tomáš, have a look at this iteration, please. OBS-URL: https://build.opensuse.org/request/show/839768 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-poppler?expand=0&rev=1
This commit is contained in:
41
use-system-pybind11.patch
Normal file
41
use-system-pybind11.patch
Normal file
@@ -0,0 +1,41 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 936467d..0f97a75 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -6,8 +6,8 @@ list(APPEND Targets "page_renderer" "page_transition")
|
||||
list(APPEND Targets "embedded_file" "destination" "toc" "font")
|
||||
|
||||
|
||||
-# find_package(pybind11)
|
||||
-add_subdirectory(pybind11)
|
||||
+find_package(pybind11)
|
||||
+# add_subdirectory(pybind11)
|
||||
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
diff --git a/setup.py b/setup.py
|
||||
index c1ba5f6..34f6ac3 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -43,6 +43,7 @@ class CMakeBuild(build_ext):
|
||||
cmake_args = [
|
||||
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + extdir,
|
||||
"-DPYTHON_EXECUTABLE=" + sys.executable,
|
||||
+ "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON",
|
||||
]
|
||||
|
||||
cfg = "Debug" if self.debug else "Release"
|
||||
@@ -65,9 +66,13 @@ class CMakeBuild(build_ext):
|
||||
)
|
||||
if not os.path.exists(self.build_temp):
|
||||
os.makedirs(self.build_temp)
|
||||
+ from pprint import pformat
|
||||
+ print("Env: {}\n".format(pformat(env)))
|
||||
+ print("Run: {} in {}\n".format(["cmake", ext.sourcedir] + cmake_args, self.build_temp))
|
||||
subprocess.check_call(
|
||||
["cmake", ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env
|
||||
)
|
||||
+ print("Run: {} in {}\n".format(["cmake", "--build", "."] + build_args, self.build_temp))
|
||||
subprocess.check_call(
|
||||
["cmake", "--build", "."] + build_args, cwd=self.build_temp
|
||||
)
|
Reference in New Issue
Block a user