Skip to content

Commit c795a9d

Browse files
committed
install pkg-config in test environment
1 parent 91a3704 commit c795a9d

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

noxfile.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,7 @@ def test_langs(session: nox.session, lang) -> None:
8686
session.debug(f"{k}: {v!r}")
8787

8888
with session.chdir(package):
89-
session.run(
90-
"python",
91-
"-m",
92-
"pip",
93-
"install",
94-
".[dev]",
95-
env={"PKG_CONFIG_PATH": os.path.join(instdir, "lib", "pkgconfig")},
96-
)
89+
session.run("python", "-m", "pip", "install", ".[dev]")
9790

9891
with session.chdir(testdir):
9992
shutil.copy(datadir / config_file, ".")
@@ -134,7 +127,7 @@ def build_examples(session: nox.Session, lang):
134127
if lang == "python":
135128
session.install("bmipy")
136129
else:
137-
session.conda_install(f"bmi-{lang}")
130+
session.conda_install(f"bmi-{lang}", "pkg-config")
138131

139132
for k, v in sorted(session.env.items()):
140133
session.debug(f"{k}: {v!r}")

0 commit comments

Comments
 (0)