Skip to content

Commit f4c0c19

Browse files
authored
Add PKG_CONFIG_PATH to default passenv (#2700)
1 parent dbeec44 commit f4c0c19

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

docs/changelog/2700.feature.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add ``PKG_CONFIG_PATH`` to the default pass through environment list for python tox environments -
2+
by :user:`gaborbernat`.

src/tox/tox_env/python/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def _default_pass_env(self) -> list[str]:
9797
"NUMBER_OF_PROCESSORS", # multiprocessing.cpu_count()
9898
],
9999
)
100+
env.extend(["PKG_CONFIG_PATH"]) # used by binary extensions during installation
100101
env.extend(["REQUESTS_CA_BUNDLE"])
101102
return env
102103

tests/session/cmd/test_show_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_pass_env_config_default(tox_project: ToxProjectCreator, stdout_is_atty:
106106
+ (["PROGRAMDATA"] if is_win else [])
107107
+ (["PROGRAMFILES"] if is_win else [])
108108
+ (["PROGRAMFILES(x86)"] if is_win else [])
109-
+ ["REQUESTS_CA_BUNDLE", "SSL_CERT_FILE"]
109+
+ ["PKG_CONFIG_PATH", "REQUESTS_CA_BUNDLE", "SSL_CERT_FILE"]
110110
+ (["SYSTEMDRIVE", "SYSTEMROOT", "TEMP"] if is_win else [])
111111
+ (["TERM"] if stdout_is_atty else [])
112112
+ (["TMP", "USERPROFILE"] if is_win else ["TMPDIR"])

0 commit comments

Comments
 (0)