build: remove use of deprecated python3 module

This can use the non-deprecated python module now that 0.50
is used for the project.
This commit is contained in:
Christian Hergert 2022-02-04 15:06:56 -08:00 committed by Christian Hergert
parent 39e98e7994
commit 22b322c6ac

View file

@ -124,10 +124,11 @@ custom_target(
enable_python = get_option('python')
if enable_python
python = import('python3')
python = import('python')
purelib_path = python.find_installation().get_install_dir()
install_data(
'GitgExt.py',
install_dir: join_paths(python.sysconfig_path('purelib'), 'gi', 'overrides'),
install_dir: join_paths(purelib_path, 'gi', 'overrides'),
)
endif