Skip to content

Commit 82005b8

Browse files
fanc999-1kjellahl
authored andcommitted
meson.build: Fix 'meson dist' on Windows
Since we are assured that we are using Python 3.x on when we run Meson, we do not really need to look for the 'python3' executable, but we could just use whatever Python interpreter that is used to run Meson. This will fix situations where it is commonly the case where we may have multiple Python 3.x installations on Windows (www.python.org, and those from Cygwin/mingw-w64), so that Meson really uses one and only one Python installation to run everything that is Python-related, which will thus fix '[meson|ninja] dist' on Visual Studio builds.
1 parent 3701a6a commit 82005b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ project_build_root = meson.current_build_dir()
3939

4040
cpp_compiler = meson.get_compiler('cpp')
4141
is_msvc = cpp_compiler.get_id() == 'msvc'
42-
python3 = import('python').find_installation('python3')
42+
python3 = import('python').find_installation()
4343

4444
python_version = python3.language_version()
4545
python_version_req = '>= 3.5'

0 commit comments

Comments
 (0)