Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,24 +120,24 @@ jobs:
PYTHON_VERSION: '3.13'
WITH_SCIPY: yes
WITH_LLVM: 5.0
OS: macos-13
OS: macos-15-intel
CC: clang

- BUILD_TYPE: Release
PYTHON_VERSION: '3.9'
WITH_NUMPY: no
OS: macos-13
OS: macos-15-intel
CC: clang

- BUILD_TYPE: Debug
PYTHON_VERSION: '3.13'
WITH_NUMPY: no
OS: macos-13
OS: macos-15-intel
CC: gcc

- BUILD_TYPE: Release
PYTHON_VERSION: '3.13'
OS: macos-13
OS: macos-15-intel
CC: gcc

- BUILD_TYPE: Release
Expand Down
7 changes: 6 additions & 1 deletion symengine/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@ add_custom_command(
COMMENT "Preprocessing symengine_wrapper.in.pyx"
)

if ("${CYTHON_VERSION}" VERSION_GREATER_EQUAL "3.1")
set(CYTHON_EXTRA_ARGS "-Xfreethreading_compatible=True")
endif()

cython_transpile(
${CMAKE_CURRENT_BINARY_DIR}/symengine_wrapper.pyx
LANGUAGE CXX
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/symengine_wrapper.cpp
CYTHON_ARGS
${CYTHON_EXTRA_ARGS}
-I ${CMAKE_CURRENT_BINARY_DIR}
-I ${CMAKE_CURRENT_SOURCE_DIR}
)
Expand Down Expand Up @@ -101,7 +106,7 @@ install(
FILES
__init__.py
symengine.pxd
symengine_wrapper.pxd
${CMAKE_CURRENT_BINARY_DIR}/symengine_wrapper.pxd
pywrapper.h
DESTINATION symengine/lib
)
Loading