Skip to content

Add PKG_CONFIG_PATH environment variable support to all activation scripts - #3023

Merged
gaborbernat merged 8 commits into
pypa:mainfrom
rahuldevikar:users/rahuldevikar/fix2637
Feb 7, 2026
Merged

Add PKG_CONFIG_PATH environment variable support to all activation scripts#3023
gaborbernat merged 8 commits into
pypa:mainfrom
rahuldevikar:users/rahuldevikar/fix2637

Conversation

@rahuldevikar

@rahuldevikar rahuldevikar commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

Add PKG_CONFIG_PATH environment variable support to all activation scripts (Bash, Batch, PowerShell, Fish, C Shell, Nushell, and Python). The virtualenv's lib/pkgconfig directory is now automatically prepended to PKG_CONFIG_PATH on activation and restored on deactivation, enabling packages that use pkg-config during build/install to find their configuration files

Fixes: #2637

Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

@rahuldevikar
rahuldevikar marked this pull request as ready for review February 6, 2026 07:49
Comment thread tests/unit/activation/test_pkg_config_path.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PKG_CONFIG_PATH to variables set by venv activate

2 participants