create a venv and install pkg-config into it, then run pkgconf, all is good.
$ python3.13 -m venv /tmp/venv_with_pkg_config
$ source /tmp/venv_with_pkg_config/bin/activate
$ pip install pkgconf
$ deactivate
$ /tmp/venv_with_pkg_config/bin/pkgconf --version
# prints 2.5.1 and debug stuff to stderr
Try this:
create a venv and install pkg-config into it, then run pkgconf, all is good.
Now create another venv, and try to call
pkgconfwith an absolute path. It fails.Unset
$VIRTUAL_ENV, it will run againThis is intentional.
However it breaks using the package as a true replacement for pkg-config, since the utility is meant to be called inside an isolated virtual environment in
pip installorcibuildwheel. See numpy/numpy#26574.