15
0

Accepting request 1003365 from home:bnavigator:branches:devel:languages:python:numeric

now with doc and license

OBS-URL: https://build.opensuse.org/request/show/1003365
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-meson-python?expand=0&rev=1
This commit is contained in:
2022-09-14 15:48:11 +00:00
committed by Git OBS Bridge
commit 2b235b37f3
8 changed files with 183 additions and 0 deletions

15
mesonpy-no-rpath.patch Normal file
View File

@@ -0,0 +1,15 @@
Index: meson_python-0.8.1/mesonpy/__init__.py
===================================================================
--- meson_python-0.8.1.orig/mesonpy/__init__.py
+++ meson_python-0.8.1/mesonpy/__init__.py
@@ -327,7 +327,9 @@ class _WheelBuilder():
counter.update(location)
# fix file
- if platform.system() == 'Linux':
+ # disable rpath addition for rpmbuilds -- https://github.com/FFY00/meson-python/issues/125
+ if (platform.system() == 'Linux' and (os.environ.get("RPM_BUILD_ROOT", None) is None or
+ os.environ.get("MESONPY_FORCE_LOCAL_LIB", None))):
# add .mesonpy.libs to the RPATH of ELF files
if self._is_elf(os.fspath(origin)):
# copy ELF to our working directory to avoid Meson having to regenerate the file