Skip to content

Commit 2b77370

Browse files
committed
Add shibokenmodule dependency for all _pyi modules
When building on Fedora rawhide, we sometimes end up running generate_pyi.py script while shibokenmodule is still being built, resulting in the following error message: ImportError: (...)/Shiboken.cpython-313-x86_64-linux-gnu.so: file too short Pick-to: 6.7 Change-Id: I500679bf12e4ba5a820db6c7971f8cdb0012b965 Reviewed-by: Christian Tismer <[email protected]> Reviewed-by: Łukasz Patron <[email protected]>
1 parent 20a1e76 commit 2b77370

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sources/pyside6/cmake/Macros/PySideModules.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ macro(create_pyside_module)
340340
${generate_pyi_options})
341341
add_dependencies("${module_NAME}_pyi" ${module_NAME})
342342

343+
if(TARGET shibokenmodule)
344+
add_dependencies("${module_NAME}_pyi" shibokenmodule)
345+
endif()
346+
343347
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/../${module_NAME}.pyi"
344348
DESTINATION "${PYTHON_SITE_PACKAGES}/PySide6")
345349
endif()

0 commit comments

Comments
 (0)