lingua-franca
lingua-franca copied to clipboard
New target property for specifying Python version
This PR introduces a new target property python-version
that allows users to explicitly specify the Python version to be used.
Related Issues and PR: Issue #2298 Issue #2299 PR #2292
Example:
target Python {
python-version: "3.9.10"
}
If python-version
is not specified, the system will default to using Python 3.10 or newer.
Summary by CodeRabbit
-
New Features
- Added support for specifying a specific Python version when generating Python code, defaulting to Python 3.10 or newer if no version is specified.
-
Improvements
- Updated the Python code generation process to allow more precise control over the Python interpreter version used, enhancing compatibility and stability.