blob: 31eacaf19534c84d729e12d316ee615e9d79d2cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|