mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
meson: use the new 'python' module instead of the 'python3' one. Closes #1455
The new python module, added with 0.46, works with Python 2 and 3 and allows to pass a path for the interpreter to use, if the need arises. Previously the meson build set PYTHON, used in the shebang line of the scripts installed by glib, to the full path of the interpreter. The new meson module doesn't expose that atm, but we should set it to a executable name anyway, and not a full path.
This commit is contained in:
@@ -92,7 +92,7 @@ python_tools = [
|
||||
|
||||
python_tools_conf = configuration_data()
|
||||
python_tools_conf.set('VERSION', glib_version)
|
||||
python_tools_conf.set('PYTHON', python.path())
|
||||
python_tools_conf.set('PYTHON', python_name)
|
||||
|
||||
foreach tool: python_tools
|
||||
tool_bin = configure_file(
|
||||
|
@@ -1,6 +1,3 @@
|
||||
py3_mod = import('python3')
|
||||
py3 = py3_mod.find_python()
|
||||
|
||||
gobject_tests = [
|
||||
'qdata',
|
||||
'boxed',
|
||||
@@ -82,8 +79,8 @@ test('signals', exe, env : test_env, suite : ['gobject'])
|
||||
|
||||
test(
|
||||
'mkenums.py',
|
||||
py3,
|
||||
python,
|
||||
args: files('mkenums.py'),
|
||||
env: test_env,
|
||||
suite: ['gobject'],
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user