lingua-franca icon indicating copy to clipboard operation
lingua-franca copied to clipboard

New target property for specifying Python version

Open jackyk02 opened this issue 8 months ago • 5 comments

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.

jackyk02 avatar Jun 26 '24 05:06 jackyk02