* Drop Python 3.7 support. * Bump minimum required Meson version to 0.64.0. * Bump minimum required pyproject-metadata version to 0.9.0 to enable support for PEP 639. * Add support for PEP 639 metadata fields. Canonicalization and validation of the license expression requires packaging version 24.2 or later. * Add support for declaring the licence and license-files as dynamic fields in pyproject.toml. * Add support for symbolic links that point to files within the source tree. They are now included as regular files in the sdist archive. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-meson-python?expand=0&rev=30
25 lines
1.0 KiB
Diff
25 lines
1.0 KiB
Diff
Authors: code@bnavigator.de, bwiedemann@suse.com
|
|
Ref: https://github.com/openSUSE/python-rpm-macros/issues/182
|
|
Ref: https://github.com/mesonbuild/meson-python/issues/671
|
|
|
|
Reproducible builds require a deterministic build path.
|
|
Use the python-rpm-macros shuffled build directory.
|
|
|
|
|
|
Index: meson_python-0.16.0/mesonpy/__init__.py
|
|
===================================================================
|
|
--- meson_python-0.16.0.orig/mesonpy/__init__.py
|
|
+++ meson_python-0.16.0/mesonpy/__init__.py
|
|
@@ -943,7 +943,10 @@ def _project(config_settings: Optional[D
|
|
|
|
with contextlib.ExitStack() as ctx:
|
|
if build_dir is None:
|
|
- build_dir = ctx.enter_context(tempfile.TemporaryDirectory(prefix='.mesonpy-', dir=source_dir))
|
|
+ if(os.environ.get('SOURCE_DATE_EPOCH')):
|
|
+ build_dir = pathlib.Path(source_dir) / 'build'
|
|
+ else:
|
|
+ build_dir = ctx.enter_context(tempfile.TemporaryDirectory(prefix='.mesonpy-', dir=source_dir))
|
|
yield Project(source_dir, build_dir, meson_args, editable_verbose)
|
|
|
|
|