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
27 changes: 27 additions & 0 deletions easybuild/easyconfigs/o/optree/optree-0.14.1-GCCcore-13.3.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
easyblock = 'PythonPackage'

name = 'optree'
version = '0.14.1'

homepage = 'https://optree.readthedocs.io/en/latest/'
description = "Optimized PyTree Utilities"

toolchain = {'name': 'GCCcore', 'version': '13.3.0'}

sources = [SOURCE_TAR_GZ]
patches = ['optree-0.14.1_fix-path-type.patch']
checksums = [
'c011c6124d6dcbfceade2d7c4f836eab66ed8cf9ab12f94535b41a71dd734637',
{'optree-0.14.1_fix-path-type.patch': 'fe8642e52bb981c76843911b3fe968ab8248cf01033523832a0511987b65479a'},
]

builddependencies = [
('binutils', '2.42'),
('CMake', '3.29.3'),
]

dependencies = [
('Python', '3.12.3'),
]

moduleclass = 'lib'
18 changes: 18 additions & 0 deletions easybuild/easyconfigs/o/optree/optree-0.14.1_fix-path-type.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Pass path as string to mkpath to avoid:
> mkpath: 'name' must be a string (got PosixPath

Author: Alexander Grund (TU Dresden)

diff --git a/setup.py b/setup.py
index 84f1db16..482d072a 100644
--- a/setup.py
+++ b/setup.py
@@ -138,7 +138,7 @@ def build_extension(self, ext: Extension) -> None: # noqa: C901
with unset_python_path():
self.spawn([cmake, '--version']) # cmake in the parent virtual environment

- self.mkpath(build_temp)
+ self.mkpath(str(build_temp))
with spawn_context():
self.spawn([cmake, '-S', str(ext.source_dir), '-B', str(build_temp), *cmake_args])
self.spawn([cmake, '--build', str(build_temp), *build_args])