From 1d45280be7fd2263faf0af35cf5c46073a428c15 Mon Sep 17 00:00:00 2001 From: Jacky Kwok <77720778+jackyk02@users.noreply.github.com> Date: Tue, 25 Jun 2024 23:53:36 -0700 Subject: [PATCH] Update Minimum Python Version --- .../main/java/org/lflang/generator/python/PythonGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/lflang/generator/python/PythonGenerator.java b/core/src/main/java/org/lflang/generator/python/PythonGenerator.java index 4f6ae54b30..20a8ef52cf 100644 --- a/core/src/main/java/org/lflang/generator/python/PythonGenerator.java +++ b/core/src/main/java/org/lflang/generator/python/PythonGenerator.java @@ -561,7 +561,7 @@ protected void additionalPostProcessingForModes() { private static String setUpMainTarget( boolean hasMain, String executableName, Stream cSources) { - String pyVersion = pythonVersion.isEmpty() ? "3.8" : pythonVersion + " EXACT"; + String pyVersion = pythonVersion.isEmpty() ? "3.10.0...<3.11.0" : pythonVersion + " EXACT"; return (""" set(CMAKE_POSITION_INDEPENDENT_CODE ON) add_compile_definitions(_PYTHON_TARGET_ENABLED)