1

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.

einpoklum
  • 118,144
  • 57
  • 340
  • 684

1 Answers1

1

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

einpoklum
  • 118,144
  • 57
  • 340
  • 684
  • Exactly, python3 is a binary, but most linux distros (and cygwin) package development headers separately. – dcbaker Sep 21 '21 at 14:39
  • @dcbaker: Well, I would have assumed that since python3 isn't a library, it wouldn't have a "-devel" version - but I guess I was wrong. – einpoklum Sep 21 '21 at 14:45
  • Python is both a library and a program. When you build a python extension with C or C++, you include the python headers and (sometimes) link against libpython. – dcbaker Sep 21 '21 at 22:00