diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meson.build b/meson.build index c7b1572..a0efc98 100644 --- a/meson.build +++ b/meson.build @@ -17,6 +17,9 @@ if dir_udev == '' dir_udev = dir_sys_udev endif +pymod = import('python') +python = pymod.find_installation('python3', required: true) + # Do not modify this, use symbol versioning instead. libwacom_lt_c=8 libwacom_lt_r=1 @@ -294,8 +297,7 @@ if get_option('tests').enabled() endif if meson.version().version_compare('>= 0.51.0') - python = import('python') - python.find_installation(modules: ['libevdev', 'pyudev', 'pytest']) + pymod.find_installation(modules: ['libevdev', 'pyudev', 'pytest']) endif pytest = find_program('pytest-3', 'pytest') test('pytest', |