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.