Skip to content

Autoconf: Fix Python test and allow configuration#371

Merged
marshallward merged 2 commits intoNOAA-GFDL:dev/gfdlfrom
marshallward:ac_python_test
Jun 9, 2023
Merged

Autoconf: Fix Python test and allow configuration#371
marshallward merged 2 commits intoNOAA-GFDL:dev/gfdlfrom
marshallward:ac_python_test

Conversation

@marshallward
Copy link
Copy Markdown
Member

The AC_PATH_PROGS macros used in Python testing were incorrectly using AC_MSG_ERROR in places where a missing value for PYTHON should be if the executable was not found.

It also did not permit for a configurable PYTHON variable, since the autodetect was always run, even if PYTHON were set.

This has been updated so that Python autodetection only runs if PYTHON is unset. It also correctly reports a failed configuration if PYTHON is not found.

(It does not, however, test of PYTHON is actually a Python interpreter, but we can deal with that at a later date.)

The AC_PATH_PROGS macros used in Python testing were incorrectly using
AC_MSG_ERROR in places where a missing value for PYTHON should be if the
executable was not found.

It also did not permit for a configurable PYTHON variable, since the
autodetect was always run, even if PYTHON were set.

This has been updated so that Python autodetection only runs if
PYTHON is unset.  It also correctly reports a failed configuration if
PYTHON is not found.

(It does not, however, test of PYTHON is actually a Python interpreter,
but we can deal with that at a later date.)
@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2023

Codecov Report

Merging #371 (f458d8a) into dev/gfdl (d0f7b29) will decrease coverage by 0.01%.
The diff coverage is n/a.

❗ Current head f458d8a differs from pull request most recent head 3fee905. Consider uploading reports for the commit 3fee905 to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #371      +/-   ##
============================================
- Coverage     38.38%   38.38%   -0.01%     
============================================
  Files           268      268              
  Lines         76010    76010              
  Branches      13987    13987              
============================================
- Hits          29176    29174       -2     
- Misses        41595    41597       +2     
  Partials       5239     5239              

see 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Copy Markdown
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am formally approving this PR, in line with the review from Raf Dussin.

@marshallward
Copy link
Copy Markdown
Member Author

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/19455 ✔️

@marshallward marshallward merged commit b075794 into NOAA-GFDL:dev/gfdl Jun 9, 2023
@marshallward marshallward deleted the ac_python_test branch July 21, 2023 14:40
dhruvbalwada pushed a commit to dhruvbalwada/MOM6 that referenced this pull request Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants