aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-11-23 15:46:51 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-11-24 11:50:20 -0500
commitbf832743441a1171518d7a436164c989be679410 (patch)
tree3b429c7a9bff5ea983ab0f48b58a5d3663d8bfbe /mesonbuild/backend/backends.py
parentc05b2ba231bae7c4f1671980ca0faa7d2018dce8 (diff)
downloadmeson-bf832743441a1171518d7a436164c989be679410.zip
meson-bf832743441a1171518d7a436164c989be679410.tar.gz
meson-bf832743441a1171518d7a436164c989be679410.tar.bz2
python module: fix broken non-embed dependency
The `py.dependency(embed: false)` method is supposed to consistently provide a distutils-like `python.pc` / `python-embed.pc` interface regardless of Python version. It handles both pkg-config and sysconfig scraping. For the latter, we respect the value of self.link_libpython as determined by distutils, and construct a fully custom dependency. For the former, we blindly assume pkg-config is correct. It isn't correct, not until Python 3.8 when embed was added. Before then, we need to process the pkg-config dependency based on link_libpython. We did this, but only inside the extension_module method, which is obviously wrong. Delete the special casing from extension_module, and handle it inside the dependency. Fixes #11097
Diffstat (limited to 'mesonbuild/backend/backends.py')
0 files changed, 0 insertions, 0 deletions