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

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

Merged
merged 2 commits into from
Dec 19, 2023

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
38 checks passed
@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