File setuppy.patch of Package python-pybind11

Index: pybind11/setup.py
===================================================================
--- pybind11.orig/setup.py        2021-01-27 02:26:45.000000000 +0000
+++ pybind11/setup.py     2021-11-30 22:20:58.904080701 +0000
@@ -101,14 +101,15 @@
 with remove_output("pybind11/include", "pybind11/share"):
     # Generate the files if they are not present.
     with TemporaryDirectory() as tmpdir:
-        cmd = ["cmake", "-S", ".", "-B", tmpdir] + [
-            "-DCMAKE_INSTALL_PREFIX=pybind11",
+        cmd = ["cmake",
+            "-DCMAKE_INSTALL_PREFIX=" + DIR + "/pybind11",
             "-DBUILD_TESTING=OFF",
             "-DPYBIND11_NOPYTHON=ON",
+           DIR
         ]
-        cmake_opts = dict(cwd=DIR, stdout=sys.stdout, stderr=sys.stderr)
+        cmake_opts = dict(cwd=tmpdir, stdout=sys.stdout, stderr=sys.stderr)
         subprocess.check_call(cmd, **cmake_opts)
-        subprocess.check_call(["cmake", "--install", tmpdir], **cmake_opts)
+        subprocess.check_call(["make", "install"], **cmake_opts)

     txt = get_and_replace(setup_py, version=version, extra_cmd=extra_cmd)
     code = compile(txt, setup_py, "exec")
openSUSE Build Service is sponsored by