From 15083a540919ca9a6b718f7988f08107875f71d9 Mon Sep 17 00:00:00 2001 From: Jonas Schuhmacher Date: Thu, 18 Apr 2024 19:25:13 +0200 Subject: [PATCH] fix setup.py --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6080fcc..977cd9a 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,8 @@ def get_cmake_generator(): If not, returns "Ninja" if ninja build is installed. Otherwise, none is returned. """ - if (os_env_generator := os.environ.get("CMAKE_GENERATOR")) is not None: + os_env_generator = os.environ.get("CMAKE_GENERATOR", None) + if os_env_generator is not None: return os_env_generator elif is_ninja_installed(): return "Ninja"