meson: remove build requirement for distutils

Tested on a default installation of Debian 10.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-06-09 16:33:16 -07:00
parent 4c144cf9c5
commit 447629b61b
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B

View File

@ -22,7 +22,6 @@ project('zstd',
cc = meson.get_compiler('c') cc = meson.get_compiler('c')
cxx = meson.get_compiler('cpp') cxx = meson.get_compiler('cpp')
pkgconfig = import('pkgconfig') pkgconfig = import('pkgconfig')
python3 = import('python').find_installation()
windows_mod = import('windows') windows_mod = import('windows')
host_machine_os = host_machine.system() host_machine_os = host_machine.system()
@ -40,8 +39,8 @@ compiler_msvc = 'msvc'
zstd_version = meson.project_version() zstd_version = meson.project_version()
zstd_h_file = join_paths(meson.current_source_dir(), '../../lib/zstd.h') zstd_h_file = join_paths(meson.current_source_dir(), '../../lib/zstd.h')
GetZstdLibraryVersion_py = files('GetZstdLibraryVersion.py') GetZstdLibraryVersion_py = find_program('GetZstdLibraryVersion.py', native : true)
r = run_command(python3, GetZstdLibraryVersion_py, zstd_h_file) r = run_command(GetZstdLibraryVersion_py, zstd_h_file)
if r.returncode() == 0 if r.returncode() == 0
zstd_version = r.stdout().strip() zstd_version = r.stdout().strip()
message('Project version is now: @0@'.format(zstd_version)) message('Project version is now: @0@'.format(zstd_version))