Skip to content

Conversation

@sobue-code
Copy link

Fixes TestNumpyConfig.test_configtool_pkgconfigdir failure by resolving PKG_CONFIG_DIR with .resolve() to match _configtool.py behavior. Addresses assertion error in build environments where Python is configured with --with-platlibdir=lib64 and lib64 is a symlink to lib.

Closes #29434

…nk (numpy#29434)

Ensure `TestNumpyConfig.test_configtool_pkgconfigdir` resolves `PKG_CONFIG_DIR`
using `.resolve()` to match the resolved path from `_configtool.py`.
@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Jul 24, 2025
@mattip
Copy link
Member

mattip commented Jul 24, 2025

Seems right to me, thanks @sobue-code

@mattip mattip merged commit fda7b4c into numpy:main Jul 24, 2025
77 checks passed
@sobue-code sobue-code deleted the fix-test-configtool-pkgconfigdir-path branch July 25, 2025 06:10
@charris charris changed the title BUG: Fix test_configtool_pkgconfigdir to resolve PKG_CONFIG_DIR symli… BUG: Fix test_configtool_pkgconfigdir to resolve PKG_CONFIG_DIR symlink Jul 25, 2025
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Test failure in test_configtool_pkgconfigdir due to unresolved symlink in build environment

3 participants