Skip to content

Commit

Permalink
install pkg-config in test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 11, 2024
1 parent 91a3704 commit c795a9d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,7 @@ def test_langs(session: nox.session, lang) -> None:
session.debug(f"{k}: {v!r}")

with session.chdir(package):
session.run(
"python",
"-m",
"pip",
"install",
".[dev]",
env={"PKG_CONFIG_PATH": os.path.join(instdir, "lib", "pkgconfig")},
)
session.run("python", "-m", "pip", "install", ".[dev]")

with session.chdir(testdir):
shutil.copy(datadir / config_file, ".")
Expand Down Expand Up @@ -134,7 +127,7 @@ def build_examples(session: nox.Session, lang):
if lang == "python":
session.install("bmipy")
else:
session.conda_install(f"bmi-{lang}")
session.conda_install(f"bmi-{lang}", "pkg-config")

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

0 comments on commit c795a9d

Please sign in to comment.