From 9bc5bad09903e701cacce2c842594b55d61ee152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lozier?= Date: Thu, 18 Jun 2026 20:56:48 -0400 Subject: [PATCH] Python 3.7 --- Directory.Build.props | 1 + src/core/IronPython/Runtime/PythonContext.cs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Directory.Build.props b/Directory.Build.props index fbd923f20..930840c60 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -29,6 +29,7 @@ PYTHON_$(MajorVersion)$(MinorVersion) $(PythonSymbols);PYTHON_36_OR_GREATER + $(PythonSymbols);PYTHON_37_OR_GREATER false diff --git a/src/core/IronPython/Runtime/PythonContext.cs b/src/core/IronPython/Runtime/PythonContext.cs index 0e4efbdee..32907cec8 100644 --- a/src/core/IronPython/Runtime/PythonContext.cs +++ b/src/core/IronPython/Runtime/PythonContext.cs @@ -303,6 +303,9 @@ void BootstrapImportLib() { LoadModuleFromResource("_frozen_importlib_external", "IronPython.Modules._bootstrap_external.py"); #endif PythonOps.Invoke(SharedClsContext, _frozen_importlib, "_install", SystemState, GetBuiltinModule("_imp")); +#if PYTHON_37_OR_GREATER + PythonOps.Invoke(SharedClsContext, _frozen_importlib, "_install_external_importers"); +#endif } catch { } PythonModule LoadModuleFromResource(string name, string resourceName) {