pythonpython-3.xcygwinpkg-configmeson-build

meson finds python3 binary, fails to find python3 dependency


I'm trying to build a certain repository using meson on Cygwin. This is what happens:

$ meson build_dir
The Meson build system
Version: 0.58.2
Source dir: /home/joeuser/src/meld-3.21.0
Build dir: /home/joeuser/src/meld-3.21.0/build_dir
Build type: native build
Project name: meld
Project version: 3.21.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/usr/bin/python3)
Found pkg-config: /usr/bin/pkg-config (1.6.3)
Run-time dependency python3 found: NO (tried pkgconfig and sysconfig)

meson.build:18:0: ERROR: Dependency "python3" not found, tried pkgconfig and sysconfig

Why is this happening? And how can I get meson to find the python3 dependency?

Note: I've installed python38-pkgconfig in case that matters.


Solution

  • meson will find python3 if you also install the python3-devel package using the Cygwin installer.