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
27 lines
953 B
Diff
27 lines
953 B
Diff
From 0a5308014f7226e4e303e2779a8177acea70c49c Mon Sep 17 00:00:00 2001
|
|
From: Eli Schwartz <eschwartz93@gmail.com>
|
|
Date: Sun, 11 Sep 2022 22:11:10 -0400
|
|
Subject: [PATCH] BUG: fix native file override
|
|
|
|
This attempted to override "python3", which Meson never used for
|
|
find_installation. So the native file did nothing.
|
|
|
|
Override the correct name.
|
|
---
|
|
mesonpy/__init__.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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
|
|
@@ -443,7 +443,7 @@ class Project():
|
|
# write the native file
|
|
native_file_data = textwrap.dedent(f'''
|
|
[binaries]
|
|
- python3 = '{sys.executable}'
|
|
+ python = '{sys.executable}'
|
|
''')
|
|
native_file_mismatch = (
|
|
not self._meson_native_file.exists()
|