diff options
Diffstat (limited to '')
-rw-r--r-- | devel/py-optree/files/patch-pyproject.toml | 20 | ||||
-rw-r--r-- | devel/py-optree/files/patch-setup.py | 14 |
2 files changed, 27 insertions, 7 deletions
diff --git a/devel/py-optree/files/patch-pyproject.toml b/devel/py-optree/files/patch-pyproject.toml new file mode 100644 index 000000000000..2f173c18f26b --- /dev/null +++ b/devel/py-optree/files/patch-pyproject.toml @@ -0,0 +1,20 @@ +--- pyproject.toml.orig 2025-05-28 07:15:37 UTC ++++ pyproject.toml +@@ -1,7 +1,7 @@ + # Package ###################################################################### + + [build-system] +-requires = ["setuptools >= 77.0", "pybind11 >= 2.12"] ++requires = ["setuptools", "pybind11 >= 2.12"] + build-backend = "setuptools.build_meta" + + [project] +@@ -10,7 +10,7 @@ authors = [{ name = "OpTree Contributors" }] + readme = "README.md" + requires-python = ">= 3.9" + authors = [{ name = "OpTree Contributors" }] +-license = "Apache-2.0" ++license = { text = "Apache-2.0" } + keywords = [ + "PyTree", + "Tree Manipulation", diff --git a/devel/py-optree/files/patch-setup.py b/devel/py-optree/files/patch-setup.py index 57005e73ef45..d8fd6d01a403 100644 --- a/devel/py-optree/files/patch-setup.py +++ b/devel/py-optree/files/patch-setup.py @@ -1,13 +1,13 @@ ---- setup.py.orig 2025-04-06 13:55:44 UTC +--- setup.py.orig 2025-07-25 08:24:07 UTC +++ setup.py -@@ -211,10 +211,6 @@ class cmake_build_ext(build_ext): # noqa: N801 - cmake_args.append(f'-Dpybind11_DIR={pybind11.get_cmake_dir()}') +@@ -222,10 +222,6 @@ class cmake_build_ext(build_ext): # noqa: N801 + cmake_args += [f'-Dpybind11_DIR={pybind11.get_cmake_dir()}'] build_args = ['--config', config] - if 'CMAKE_BUILD_PARALLEL_LEVEL' not in os.environ and bool(getattr(self, 'parallel', 0)): -- build_args.extend(['--parallel', str(self.parallel)]) +- build_args += ['--parallel', str(self.parallel)] - else: -- build_args.append('--parallel') - - build_args.extend(['--target', ext.target, '--']) +- build_args += ['--parallel'] + build_args += ['--target', ext.target, '--'] + self.mkpath(str(build_temp)) |