From 75e1082f2d17c2c2ccb3c38b429fa24a4b45bbea Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Ayllon 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