From 69144ea42b567d2a493b07e89a8ce70346deb3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me> Date: Fri, 5 Jul 2024 12:02:20 +0200 Subject: [PATCH] fix : syntax --- pyproject.toml | 2 +- setup.py | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e662bae56..43cccaa9a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,10 +21,10 @@ test = [ [build-system] requires = [ - "ninja>=1.10.1", "setuptools>=64", "setuptools_scm[toml]==7.1.0", "cmake>=3.27.9", + "ninja>=1.10.1", "toml" ] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index cb6ee1a4a..19289dc2d 100644 --- a/setup.py +++ b/setup.py @@ -51,12 +51,16 @@ class CMakeBuild(build_ext): if "AIDGE_INSTALL" not in os.environ else os.environ["AIDGE_INSTALL"] ) + build_gen = ( - ["-G",[os.environ["AIDGE_BUILD_GEN"]] + ["-G", os.environ["AIDGE_BUILD_GEN"]] if "AIDGE_BUILD_GEN" in os.environ - else [-G,"Ninja"] # using ninja as default build system to build faster and with the same compiler as on windows + else [ + -G, + "Ninja", + ] # using ninja as default build system to build faster and with the same compiler as on windows ) - + self.spawn( [ "cmake", -- GitLab