Skip to content

PKG_CONFIG_PATH precedence over sysconfig.get_config_var('LIBPC') looking up Python dependency during Cython compiler sanity check #889

Description

@mkoeppe

Python packages using the meson-python build system are easily tripped up by package config files from unrelated/incompatible Pythons that are installed in a user's PKG_CONFIG_PATH.

meson-python should override meson's heuristics in https://github.com/mesonbuild/meson/blob/c6cbfbbf68798d00cefdef090cff6696fdd5c20d/mesonbuild/dependencies/python.py#L467C7-L467C32 for more robust operation.

Example of typical symptoms:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependency-bugA bug experienced by users of meson-python caused by a dependency, rather than in code in this repo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions