summaryrefslogtreecommitdiff
path: root/0001-Let-pyproject_build-use-binaries-from-cmake_build.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-Let-pyproject_build-use-binaries-from-cmake_build.patch')
-rw-r--r--0001-Let-pyproject_build-use-binaries-from-cmake_build.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/0001-Let-pyproject_build-use-binaries-from-cmake_build.patch b/0001-Let-pyproject_build-use-binaries-from-cmake_build.patch
new file mode 100644
index 0000000..31eacaf
--- /dev/null
+++ b/0001-Let-pyproject_build-use-binaries-from-cmake_build.patch
@@ -0,0 +1,33 @@
+From 75e1082f2d17c2c2ccb3c38b429fa24a4b45bbea Mon Sep 17 00:00:00 2001
+From: Alejandro Alvarez Ayllon <a.alvarezayllon@gmail.com>
+Date: Sat, 24 Feb 2024 14:53:10 +0100
+Subject: [PATCH 3/4] Let pyproject_wheel use binaries from cmake_build
+
+---
+ setup.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 7d2cb9e5..af9049a1 100644
+--- a/setup.py
++++ b/setup.py
+@@ -27,7 +27,7 @@ import setuptools.command.build_py
+ import setuptools.command.develop
+
+ TOP_DIR = os.path.realpath(os.path.dirname(__file__))
+-CMAKE_BUILD_DIR = os.path.join(TOP_DIR, ".setuptools-cmake-build")
++CMAKE_BUILD_DIR = os.path.join(TOP_DIR, f"{platform.machine()}-openEuler-linux-gnu")
+
+ WINDOWS = os.name == "nt"
+
+@@ -161,6 +161,7 @@ class CmakeBuild(setuptools.Command):
+ self.jobs = multiprocessing.cpu_count()
+
+ def run(self):
++ return
+ assert CMAKE, "Could not find cmake in PATH"
+
+ os.makedirs(CMAKE_BUILD_DIR, exist_ok=True)
+--
+2.46.2
+