Commit ddc282f6 authored by Emmanuele Bassi's avatar Emmanuele Bassi

build: Remove deprecated python3 Meson module use

We are using the deprecated python3 module for historical reasons. We
used to support both Python 2 and Python 3 in the Autotools build, but
since we switched to Meson we *know* we have Python 3 available. This
allows us to use a shebang line in the Python scripts we use in the
build, instead of invoking them through the Python interpreter in a
custom target; Meson knows how to handle shebangs portably as well.

This change removes the only deprecation warning coming from Meson when
configuring the Pango build.
parent 4f529e03
Pipeline #217469 passed with stages
in 1 minute and 28 seconds
#!/usr/bin/env python3
import sys
# From glib/gutf8.c:
#!/usr/bin/env python3
import sys
import argparse
import os
......@@ -141,14 +141,13 @@ if get_option('install-tests')
install_data(installed_test_items_data, install_dir: join_paths(installed_test_bindir, 'itemize'))
python = import('python3').find_python()
gen_installed_test = files([ '' ])
gen_all_unicode = files([ '' ])
output: 'all-unicode.txt',
command: [
python, gen_all_unicode, '@OUTPUT@'
gen_all_unicode, '@OUTPUT@'
install: get_option('install-tests'),
install_dir: installed_test_bindir)
......@@ -161,7 +160,7 @@ foreach t: tests
custom_target(name + '.test',
output: name + '.test',
command: [
python, gen_installed_test,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment