Skip to content

Commit 00ab9f6

Browse files
authored
Remove setting BUCK2 when building the wheel (#11490)
### Summary This is unnecessary since we resolve buck2 in cmake already: https://github.com/pytorch/executorch/blob/8f05c355a840eb9f804fb2bf750bf4cad8a790c1/CMakeLists.txt#L78-L81 ### Test plan CI cc @larryliu0820
1 parent 611092d commit 00ab9f6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

setup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,6 @@ def run(self): # noqa C901
656656
# get_python_lib() typically returns the path to site-packages, where
657657
# all pip packages in the environment are installed.
658658
cmake_prefix_path = os.environ.get("CMAKE_PREFIX_PATH", get_python_lib())
659-
buck2 = os.environ.get(
660-
"BUCK2_EXECUTABLE", os.environ.get("BUCK2", os.environ.get("BUCK", ""))
661-
)
662659
# Put the cmake cache under the temp directory, like
663660
# "pip-out/temp.<plat>/cmake-out".
664661
pip_build_dir = os.path.join(
@@ -668,7 +665,6 @@ def run(self): # noqa C901
668665
self.mkpath(cmake_cache_dir)
669666

670667
cmake_configuration_args = [
671-
f"-DBUCK2={buck2}",
672668
f"-DPYTHON_EXECUTABLE={sys.executable}",
673669
# Let cmake calls like `find_package(Torch)` find cmake config files
674670
# like `TorchConfig.cmake` that are provided by pip packages.

0 commit comments

Comments
 (0)