Skip to content
Open
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
easyblock = 'PythonBundle'

name = 'SymEngine-python'
version = '0.14.0'

homepage = 'https://github.com/symengine/symengine.py'
description = "Python wrappers to the C++ library SymEngine, a fast C++ symbolic manipulation library."

toolchain = {'name': 'gfbf', 'version': '2025b'}

builddependencies = [
('CMake', '4.0.3'),
('Cython', '3.1.2'),
]

dependencies = [
('Python', '3.13.5'),
('Python-bundle-PyPI', '2025.07'),
('SymEngine', '0.14.0'),
]

exts_list = [
('symengine', version, {
'source_urls': ['https://github.com/symengine/symengine.py/archive/refs/tags/'],
'sources': [V_VERSION_TAR_GZ],
'patches': ['SymEngine-python-0.14.0_cmake-policy.patch'],
'checksums': [
{'v%(version)s.tar.gz':
'38e742a9b3d03b36f07b2ccba39e7e3d626e37557c26bb03ce575b95cfbd9cc4'},
{'SymEngine-python-0.14.0_cmake-policy.patch':
'c1aa1d1028de8d57d5d95f0881632afa6d9ea09a46279bfd76a4f96ab883c3c1'},
],
}),
]

moduleclass = 'lib'
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Patch to allow Symengine repo to detect CMake/4.0.3
--- setup.py.orig 2026-02-04 11:24:01.844143000 +0100
+++ setup.py 2026-02-04 11:25:12.923643376 +0100
@@ -42,7 +42,8 @@
from distutils.command.build import build as _build

cmake_opts = [("PYTHON_BIN", sys.executable),
- ("CMAKE_INSTALL_RPATH_USE_LINK_PATH", "yes")]
+ ("CMAKE_INSTALL_RPATH_USE_LINK_PATH", "yes"),
+ ("CMAKE_POLICY_VERSION_MINIMUM", "3.5")]
cmake_generator = [None]
cmake_build_type = ["Release"]

Loading