Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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/'],
'source_tmpl': 'v%(version)s.tar.gz',
Comment thread
Micket marked this conversation as resolved.
Outdated
'patches': ['symengine-cmake-policy.patch'],
Comment thread
AlvaroHuanay marked this conversation as resolved.
Outdated
'checksums': [
{'v%(version)s.tar.gz':
'38e742a9b3d03b36f07b2ccba39e7e3d626e37557c26bb03ce575b95cfbd9cc4'},
{'symengine-cmake-policy.patch':
'c1aa1d1028de8d57d5d95f0881632afa6d9ea09a46279bfd76a4f96ab883c3c1'},
],
}),
]

options = {'modulename': 'symengine'}
Comment thread
AlvaroHuanay marked this conversation as resolved.
Outdated

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