Skip to content

Pass Python_EXECUTABLE from main OF cmake to external pfunit cmake#1948

Merged
andrew-platt merged 2 commits intoOpenFAST:rc-3.5.2from
andrew-platt:b/pFUnit_Python312
Dec 19, 2023
Merged

Pass Python_EXECUTABLE from main OF cmake to external pfunit cmake#1948
andrew-platt merged 2 commits intoOpenFAST:rc-3.5.2from
andrew-platt:b/pFUnit_Python312

Conversation

@andrew-platt
Copy link
Collaborator

This is ready to merge.

Feature or improvement description
This allows pfunit to use the same interpreter found by the main OF cmake. Also adds check that the Python version is less than 3.12.

Related issue, if one exists
No GH issues related. However, the latest homebrew install on the Mac wants to use Python 3.12, which is incompatible with the version of pfunit (3.2.10) we are currently using.

Impacted areas of the software
Unit testing under certain scenarios is improved.

Additional supporting information
NOTE: pfunit uses PYTHON_EXECUTABLE internally rather than Python_EXECUTABLE which is returned by the find_package(Python ...) command.

For a specific Python version, specifying either -DPython_EXECUTABLE:FILEPATH=... or -DPython_ROOT_DIR=... for cmake will result in pfunit getting the correct info.

Test results, if applicable
No test results change.

This allows pfunit to use the same interpreter found by the main OF cmake.

NOTE: pfunit uses `PYTHON_EXECUTABLE`
@andrew-platt andrew-platt mentioned this pull request Dec 19, 2023
19 tasks
@andrew-platt andrew-platt merged commit 4423cc1 into OpenFAST:rc-3.5.2 Dec 19, 2023
@andrew-platt andrew-platt deleted the b/pFUnit_Python312 branch January 12, 2024 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments