Skip to content

pkg-config --version prints extra debugging cruft #96

@mattip

Description

@mattip

meson-python uses pkg-config --version to detect a valid pkg-config. When running that I see

$ pkg-config --version
> Running the Python pkgconf [INFO:pkgconf.cli]
> $ 'PKG_CONFIG_PATH='"'"''"'"'' /tmp/venv313/lib/python3.13/site-packages/pkgconf/.bin/pkgconf --version [INFO:pkgconf.cli]
2.5.1

Even though the extra lines goes to stderr it could possibly mess up some parsers. Is it necessary to log that info?

xref numpy/numpy#26574 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions