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) {