Future-proofing: address some deprecations
Fix a few minor deprecation issues in the code, before they become an issue down the road.
-
Meson build: Avoid features deprecated since 0.56.0 (since minimum configured version is 0.59.0)
-
meson.source_root()
is replaced withmeson.project_source_root()
andmeson.global_source_root()
, which have different behavior in subprojects. -
dependency.get_pkgconfig_variable()
and other domain-specificget...
methods were consolidated into a singledependency.get_variable()
, which takes slightly different arguments to support a superset of all previous.get_foo_variable()
methods.
-
-
Meld package: Don't use deprecated Python
pipes
moduleOnly
pipes.quote()
was being used in Meld (and only on one line inmeld/melddoc.py
), and that symbol in pipes is just an import ofshlex.quote()
anyway. Switch to callingshlex.quote()
directly, since pipes will be removed in Python 3.13.