summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2020-08-03 17:47:24 (GMT)
committerGitHub <noreply@github.com>2020-08-03 17:47:24 (GMT)
commit349b343cf02a4b224e27dce01d323fef741ffe0e (patch)
treed7931d586e4355d5abdf22b9e2cf2f5b00b372f4
parentf4054274faa24f15efedc7431fcb6914d1826220 (diff)
parent4ebc792cab645d4fef2dbad3611a67daf4d10150 (diff)
downloadlz4-349b343cf02a4b224e27dce01d323fef741ffe0e.zip
lz4-349b343cf02a4b224e27dce01d323fef741ffe0e.tar.gz
lz4-349b343cf02a4b224e27dce01d323fef741ffe0e.tar.bz2
Merge pull request #885 from neheb/mes
meson: remove build requirement for distutils
-rw-r--r--contrib/meson/meson/meson.build5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/meson/meson/meson.build b/contrib/meson/meson/meson.build
index 387e7bd..b278b7c 100644
--- a/contrib/meson/meson/meson.build
+++ b/contrib/meson/meson/meson.build
@@ -9,7 +9,6 @@
cc = meson.get_compiler('c')
pkgconfig = import('pkgconfig')
-python3 = import('python').find_installation()
c_std = get_option('c_std')
default_library = get_option('default_library')
@@ -28,8 +27,8 @@ compiler_msvc = 'msvc'
lz4_version = meson.project_version()
lz4_h_file = join_paths(meson.current_source_dir(), '../../../lib/lz4.h')
-GetLz4LibraryVersion_py = files('GetLz4LibraryVersion.py')
-r = run_command(python3, GetLz4LibraryVersion_py, lz4_h_file)
+GetLz4LibraryVersion_py = find_program('GetLz4LibraryVersion.py', native : true)
+r = run_command(GetLz4LibraryVersion_py, lz4_h_file)
if r.returncode() == 0
lz4_version = r.stdout().strip()
message('Project version is now: @0@'.format(lz4_version))