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

Python 11 and 12 support #2441

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Python 11 and 12 support #2441

wants to merge 3 commits into from

Conversation

edwardalee
Copy link
Collaborator

This PR makes Python versions 3.11 and 3.12 work with the Python target.

There is a problem I need help with, however. In this PR, the Python version is hardwired to 3.12.7 in the PythonGenerator.java file, which generates the CMake directives, and has this line:

            find_package(Python 3.12.7...<3.13.0 REQUIRED COMPONENTS Interpreter Development)

The problem is that if this line allows 3.10.0 up to 3.13.0, which is what we want, then lfc inevitably picks a different Python from one identified by CMake, and you get an error message like:

SystemError: initialization of LinguaFrancaActionDelay did not return an extension module

How can we force CMake to pick the Python version that is in the PATH? Sadly, it does not do that.
This supersedes #1902, which I will close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant