From d12c6b877d6900954ab221094eb9963ae96b94d4 Mon Sep 17 00:00:00 2001 From: jathu Date: Mon, 9 Jun 2025 10:00:54 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Simplify=20build=20configuration=20?= =?UTF-8?q?by=20removing=20Buck2=20executable=20references?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/setup.py b/setup.py index 899e1b3cbf5..86b946eebbd 100644 --- a/setup.py +++ b/setup.py @@ -656,9 +656,6 @@ def run(self): # noqa C901 # get_python_lib() typically returns the path to site-packages, where # all pip packages in the environment are installed. cmake_prefix_path = os.environ.get("CMAKE_PREFIX_PATH", get_python_lib()) - buck2 = os.environ.get( - "BUCK2_EXECUTABLE", os.environ.get("BUCK2", os.environ.get("BUCK", "")) - ) # Put the cmake cache under the temp directory, like # "pip-out/temp./cmake-out". pip_build_dir = os.path.join( @@ -668,7 +665,6 @@ def run(self): # noqa C901 self.mkpath(cmake_cache_dir) cmake_configuration_args = [ - f"-DBUCK2={buck2}", f"-DPYTHON_EXECUTABLE={sys.executable}", # Let cmake calls like `find_package(Torch)` find cmake config files # like `TorchConfig.cmake` that are provided by pip packages.