From a8931306e1628d1c3bcd809cf1d9dfa01d71693b Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Thu, 27 Mar 2025 16:00:51 -0700 Subject: [PATCH] Remove unused variable in CMakeBuild (#2011) Fix https://github.com/ml-explore/mlx/issues/2010 --- python/mlx/extension.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/python/mlx/extension.py b/python/mlx/extension.py index ecf3c52e6..8c0d60655 100644 --- a/python/mlx/extension.py +++ b/python/mlx/extension.py @@ -30,10 +30,6 @@ class CMakeBuild(build_ext): debug = int(os.environ.get("DEBUG", 0)) if self.debug is None else self.debug cfg = "Debug" if debug else "Release" - # CMake lets you override the generator - we need to check this. - # Can be set with Conda-Build, for example. - cmake_generator = os.environ.get("CMAKE_GENERATOR", "") - # Set Python_EXECUTABLE instead if you use PYBIND11_FINDPYTHON # EXAMPLE_VERSION_INFO shows you how to pass a value into the C++ code # from Python.