Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoconf: Fix Python test and allow configuration #371

Merged
merged 2 commits into from
Jun 9, 2023

Conversation

marshallward
Copy link
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

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
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
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
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