Skip to content

Commit 27e11ab

Browse files
authored
[Build] Don't require Development.Embed python component (#5287)
This component is missing from the wheel building image, so we need to make the requirement more specific. https://github.com/triton-lang/triton/actions/runs/12081047335/job/33689420657#step:6:332
1 parent cc89dac commit 27e11ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ if(TRITON_BUILD_PYTHON_MODULE)
178178
include_directories(${PYTHON_SRC_PATH})
179179

180180
# Python Interpreter is used to run lit tests
181-
find_package(Python3 REQUIRED COMPONENTS Development Interpreter)
181+
find_package(Python3 REQUIRED COMPONENTS Development.Module Interpreter)
182182
find_package(pybind11 CONFIG REQUIRED HINTS "${Python3_SITELIB}")
183183

184184
if (DEFINED TRITON_PLUGIN_DIRS)

third_party/proton/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include_directories(${JSON_INCLUDE_DIR})
1919
include_directories(${PROTON_SRC_DIR}/include)
2020
include_directories(${PROTON_EXTERN_DIR})
2121

22-
find_package(Python3 REQUIRED Interpreter Development)
22+
find_package(Python3 REQUIRED Interpreter Development.Module)
2323
find_package(pybind11 CONFIG REQUIRED HINTS "${Python3_SITELIB}")
2424

2525
# Check if the platform is MacOS

0 commit comments

Comments
 (0)