Skip to content

Commit

Permalink
Add some FC debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rjfarmer committed Dec 4, 2023
1 parent 0afadaf commit 784b488
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gfort2py/fCompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

from .utils import library_ext, fc_path

_TEST_FLAG = os.environ.get("_GFORT2PY_TEST_FLAG") is not None


def compile_and_load(
string=None,
Expand All @@ -27,6 +29,12 @@ def compile_and_load(
if FC is None:
FC = fc_path()

if _TEST_FLAG is True:
print(f"Found {FC=}")
r = subprocess.run([FC, "-v"], capture_output=True)
print(r.stdout)
print(r.stderr)

output_dir = output_folder(output)
output_file = output_filename(file, output_dir)

Expand Down

0 comments on commit 784b488

Please sign in to comment.