Skip to content

Autoconf: Find Python, even if PYTHON is empty#397

Merged
adcroft merged 1 commit into
NOAA-GFDL:dev/gfdlfrom
marshallward:ac_python_null_value
Jul 7, 2023
Merged

Autoconf: Find Python, even if PYTHON is empty#397
adcroft merged 1 commit into
NOAA-GFDL:dev/gfdlfrom
marshallward:ac_python_null_value

Conversation

@marshallward
Copy link
Copy Markdown
Member

The autoconf Python interpreter search was slightly modified to search for Python even if $PYTHON is set to an empty string. This is done by unsetting PYTHON if it is set but empty, then following the usual macro.

This was required since export PYTHON in a Makefile will create the PYTHON variable but will assign it no value (i.e. empty string). This causes issues in some build environments.

The backup configure~ script was also added to the developer ac-clean cleanup rule.

The autoconf Python interpreter search was slightly modified to search
for Python even if $PYTHON is set to an empty string.  This is done by
unsetting PYTHON if it is set but empty, then following the usual macro.

This was required since `export PYTHON` in a Makefile will create the
`PYTHON` variable but will assign it no value (i.e. empty string).
This causes issues in some build environments.

The backup `configure~` script was also added to the developer
`ac-clean` cleanup rule.
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 5, 2023

Codecov Report

Merging #397 (ec00962) into dev/gfdl (d44c228) will increase coverage by 0.00%.
The diff coverage is n/a.

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

@@            Coverage Diff            @@
##           dev/gfdl     #397   +/-   ##
=========================================
  Coverage     38.21%   38.21%           
=========================================
  Files           269      269           
  Lines         76413    76413           
  Branches      14033    14033           
=========================================
+ Hits          29201    29203    +2     
+ Misses        41969    41967    -2     
  Partials       5243     5243           

see 1 file with indirect coverage changes

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

@adcroft adcroft merged commit 620d933 into NOAA-GFDL:dev/gfdl Jul 7, 2023
@marshallward marshallward deleted the ac_python_null_value branch July 21, 2023 14:39
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.

2 participants