post-install.py fails on Windows without pkg-config
Steps to reproduce
Try to build Gtk using MSVC:
In x64 Native Tools Command Prompt for VS 2019
:
git clone git@gitlab.gnome.org:GNOME/gtk.git
cd gtk
mkdir build
cd build
meson --prefix %cd%\install
ninja
ninja install
Current behavior
post-install.py
fails:
Running custom install script 'c:\\users\\aleksandr\\appdata\\local\\programs\\python\\python39\\python.exe C:\\Users\\Aleksandr\\gtk\\build-aux/meson/post-install.py 4.0 4.0.0 C:/Users/Aleksandr/gtk/build/install/lib C:/Users/Aleksandr/gtk/build/install/share C:/Users/Aleksandr/gtk/build/install/bin'
--- stdout ---
Compiling GSettings schemas...
--- stderr ---
Traceback (most recent call last):
File "C:\Users\Aleksandr\gtk\build-aux\meson\post-install.py", line 19, in <module>
glib_compile_schemas = subprocess.check_output(['pkg-config',
File "c:\users\aleksandr\appdata\local\programs\python\python39\lib\subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "c:\users\aleksandr\appdata\local\programs\python\python39\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\users\aleksandr\appdata\local\programs\python\python39\lib\subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\users\aleksandr\appdata\local\programs\python\python39\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Не удается найти указанный файл
FAILED: install script 'c:\users\aleksandr\appdata\local\programs\python\python39\python.exe C:\Users\Aleksandr\gtk\build-aux/meson/post-install.py 4.0 4.0.0 C:/Users/Aleksandr/gtk/build/install/lib C:/Users/Aleksandr/gtk/build/install/share C:/Users/Aleksandr/gtk/build/install/bin' exit code 1, stopped
Expected outcome
I expected post-install.py
to complete successfully.
Version information
- Gtk: commit
3aa89efcf452cd0066f6b1173bf8904ab0911134
- Windows 10
- MSVC 2019
Additional information
There is no pkg-config
executable