Skip to content

Commit

Permalink
Remove hardcoded pkg-config files
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Mar 13, 2024
1 parent a32086a commit 06d2544
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,41 +40,6 @@ def test_langs(session: nox.session, lang) -> None:

session.install(".[testing]")

bmiheatf_pc = f"""\
prefix={instdir!s}
exec_prefix=${{prefix}}
libdir=${{exec_prefix}}/lib
includedir=${{prefix}}/include
Name: bmiheatf
Description: BMI Heat Fortran
Version: 1.0.0
Requires: heatf
Libs: -L${{libdir}} -lbmiheatf
Cflags: -I${{includedir}}
"""

os.makedirs(instdir / "lib" / "pkgconfig", exist_ok=True)
with open(instdir / "lib" / "pkgconfig" / "bmiheatf.pc", "w") as fp:
print(bmiheatf_pc, file=fp)

heatf_pc = f"""\
prefix={instdir!s}
exec_prefix=${{prefix}}
libdir=${{exec_prefix}}/lib
includedir=${{prefix}}/include
Name: heatf
Description: Heat Fortran
Version: 1.0.0
Libs: -L${{libdir}} -lheatf
Cflags: -I${{includedir}}
"""

os.makedirs(instdir / "lib" / "pkgconfig", exist_ok=True)
with open(instdir / "lib" / "pkgconfig" / "heatf.pc", "w") as fp:
print(heatf_pc, file=fp)

with session.chdir(tmpdir):
session.run(
"babelize",
Expand Down

0 comments on commit 06d2544

Please sign in to comment.