meson: drop explicit python interpreter

meson wraps python scripts already on win32, so we end up with these
failing commands:

[1/359] "C:/msys64/ucrt64/bin/meson" "--internal" "exe" "--capture" "src/util/virkeycodetable_atset1.h" "--" "sh" "C:/msys64/home/marca/src/libvirt/scripts/meson-python.sh" "C:/msys64/ucrt64/bin/python3.EXE" "python" "C:/msys64/home/marca/src/libvirt/src/keycodemapdb/tools/keymap-gen" "code-table" "--lang" "stdc" "--varname" "virKeyCodeTable_atset1" "C:/msys64/home/marca/src/libvirt/src/keycodemapdb/data/keymaps.csv" "atset1"
FAILED: src/util/virkeycodetable_atset1.h
"C:/msys64/ucrt64/bin/meson" "--internal" "exe" "--capture" "src/util/virkeycodetable_atset1.h" "--" "sh" "C:/msys64/home/marca/src/libvirt/scripts/meson-python.sh" "C:/msys64/ucrt64/bin/python3.EXE" "python" "C:/msys64/home/marca/src/libvirt/src/keycodemapdb/tools/keymap-gen" "code-table" "--lang" "stdc" "--varname" "virKeyCodeTable_atset1" "C:/msys64/home/marca/src/libvirt/src/keycodemapdb/data/keymaps.csv" "atset1"

If LC_ALL, LANG and LC_CTYPE need to be set, it would probably be better
to use a meson environment() instead.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Marc-André Lureau 2023-04-17 15:53:59 +04:00 committed by Michal Privoznik
parent 785dfe58fa
commit e06beacec2
7 changed files with 15 additions and 17 deletions

View File

@ -49,7 +49,7 @@ foreach name : keycode_list
input: keymap_src_file,
output: 'virkeycode-@0@.rst'.format(name),
command: [
meson_python_prog, python3_prog, keymap_gen_prog, 'code-docs',
keymap_gen_prog, 'code-docs',
'--lang', 'rst',
'--title', 'virkeycode-@0@'.format(name),
'--subtitle', 'Key code values for @0@'.format(name),
@ -70,7 +70,7 @@ foreach name : keyname_list
input: keymap_src_file,
output: 'virkeyname-@0@.rst'.format(name),
command: [
meson_python_prog, python3_prog, keymap_gen_prog, 'name-docs',
keymap_gen_prog, 'name-docs',
'--lang', 'rst',
'--title', 'virkeyname-@0@'.format(name),
'--subtitle', 'Key name values for @0@'.format(name),

View File

@ -123,7 +123,7 @@ aclperms_gen = custom_target(
input: access_perm_h,
output: 'aclperms.htmlinc',
command: [
meson_python_prog, python3_prog, genaclperms_prog, '@INPUT@',
genaclperms_prog, '@INPUT@',
],
capture: true,
)
@ -145,7 +145,7 @@ docs_api_generated = custom_target(
'libvirt-admin-api.xml',
],
command: [
meson_python_prog, python3_prog, apibuild_prog,
apibuild_prog,
meson.current_source_dir(),
meson.current_build_dir(),
],
@ -264,8 +264,6 @@ hvsupport_html_in = custom_target(
'hvsupport.html.in',
output: 'hvsupport.html.in',
command: [
meson_python_prog,
python3_prog,
hvsupport_prog,
meson.project_source_root(),
meson.project_build_root(),

View File

@ -68,7 +68,7 @@ libvirt_admin_syms = custom_target(
],
output: 'libvirt_admin.syms',
command: [
meson_python_prog, python3_prog, meson_gen_sym_prog,
meson_gen_sym_prog,
'@OUTPUT@', 'LIBVIRT_ADMIN_PRIVATE_' + meson.project_version(), '@INPUT@',
],
)
@ -79,7 +79,7 @@ if host_machine.system() == 'windows'
input: libvirt_admin_syms,
output: 'libvirt_admin.def',
command: [
meson_python_prog, python3_prog, meson_gen_def_prog,
meson_gen_def_prog,
'@INPUT@', '@OUTPUT@',
],
)

View File

@ -25,7 +25,7 @@ esx_gen_headers = custom_target(
'esx_vi_types.generated.typeenum',
],
command: [
meson_python_prog, python3_prog, esx_vi_generator_prog,
esx_vi_generator_prog,
meson.project_source_root() / 'src',
meson.project_build_root() / 'src',
'header',
@ -46,7 +46,7 @@ esx_gen_sources = custom_target(
'esx_vi_types.generated.typetostring',
],
command: [
meson_python_prog, python3_prog, esx_vi_generator_prog,
esx_vi_generator_prog,
meson.project_source_root() / 'src',
meson.project_build_root() / 'src',
'source',

View File

@ -17,7 +17,7 @@ hyperv_gen_sources = custom_target(
'hyperv_wmi_classes.generated.typedef',
],
command: [
meson_python_prog, python3_prog, hyperv_wmi_generator_prog,
hyperv_wmi_generator_prog,
meson.project_source_root() / 'src',
meson.project_build_root() / 'src',
],

View File

@ -350,7 +350,7 @@ libvirt_syms = custom_target(
input: [ public_sym_file ] + used_sym_files + generated_sym_files,
output: 'libvirt.syms',
command: [
meson_python_prog, python3_prog, meson_gen_sym_prog,
meson_gen_sym_prog,
'@OUTPUT@', 'LIBVIRT_PRIVATE_' + meson.project_version(), '@INPUT@',
],
)
@ -361,7 +361,7 @@ if host_machine.system() == 'windows'
input: libvirt_syms,
output: 'libvirt.def',
command: [
meson_python_prog, python3_prog, meson_gen_def_prog,
meson_gen_def_prog,
'@INPUT@', '@OUTPUT@',
],
)
@ -417,7 +417,7 @@ if host_machine.system() == 'windows'
input: libvirt_qemu_syms,
output: 'libvirt_qemu.def',
command: [
meson_python_prog, python3_prog, meson_gen_def_prog,
meson_gen_def_prog,
'@INPUT@', '@OUTPUT@',
],
)
@ -476,7 +476,7 @@ if host_machine.system() == 'windows'
input: libvirt_lxc_syms,
output: 'libvirt_lxc.def',
command: [
meson_python_prog, python3_prog, meson_gen_def_prog,
meson_gen_def_prog,
'@INPUT@', '@OUTPUT@',
],
)

View File

@ -147,7 +147,7 @@ foreach name : keycode_list
input: keymap_src_file,
output: 'virkeycodetable_@0@.h'.format(name),
command: [
meson_python_prog, python3_prog, keymap_gen_prog, 'code-table',
keymap_gen_prog, 'code-table',
'--lang', 'stdc',
'--varname', 'virKeyCodeTable_@0@'.format(name),
'@INPUT@', name,
@ -162,7 +162,7 @@ foreach name : keyname_list
input: keymap_src_file,
output: 'virkeynametable_@0@.h'.format(name),
command: [
meson_python_prog, python3_prog, keymap_gen_prog, 'name-table',
keymap_gen_prog, 'name-table',
'--lang', 'stdc',
'--varname', 'virKeyNameTable_@0@'.format(name),
'@INPUT@', name,