Skip to content

Commit 7f28231

Browse files
committed
Error in stubgen with python 3.8 and apple:arm (fix by skipping stubgen)
1 parent 62e87db commit 7f28231

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ else()
9090
endif()
9191

9292
# Skip if we are building for apple AND python is greater than 3.8
93-
if((NOT APPLE) OR (Python_VERSION VERSION_GREATER "3.8"))
93+
if((NOT APPLE) OR (Python_VERSION VERSION_GREATER_EQUAL "3.9"))
9494
# Create a stub file for type hints
9595
nanobind_add_stub(
9696
Signalsmith_stub
@@ -106,7 +106,7 @@ endif()
106106
# Install directive for scikit-build-core
107107
install(TARGETS Signalsmith LIBRARY DESTINATION python_stretch)
108108

109-
if((NOT APPLE) OR (Python_VERSION VERSION_GREATER "3.8"))
109+
if((NOT APPLE) OR (Python_VERSION VERSION_GREATER_EQUAL "3.9"))
110110
# Install stub files
111111
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/py.typed ${CMAKE_CURRENT_BINARY_DIR}/Signalsmith.pyi DESTINATION python_stretch)
112112
endif()

0 commit comments

Comments
 (0)