Skip to content

Commit ffaccda

Browse files
authored
Python 3.7 (#2067)
1 parent cca6724 commit ffaccda

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
<PythonSymbols>PYTHON_$(MajorVersion)$(MinorVersion)</PythonSymbols>
3131
<PythonSymbols Condition="'$(MajorVersion)$(MinorVersion)' >= '36'">$(PythonSymbols);PYTHON_36_OR_GREATER</PythonSymbols>
32+
<PythonSymbols Condition="'$(MajorVersion)$(MinorVersion)' >= '37'">$(PythonSymbols);PYTHON_37_OR_GREATER</PythonSymbols>
3233

3334
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
3435

src/core/IronPython/Runtime/PythonContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ void BootstrapImportLib() {
303303
LoadModuleFromResource("_frozen_importlib_external", "IronPython.Modules._bootstrap_external.py");
304304
#endif
305305
PythonOps.Invoke(SharedClsContext, _frozen_importlib, "_install", SystemState, GetBuiltinModule("_imp"));
306+
#if PYTHON_37_OR_GREATER
307+
PythonOps.Invoke(SharedClsContext, _frozen_importlib, "_install_external_importers");
308+
#endif
306309
} catch { }
307310

308311
PythonModule LoadModuleFromResource(string name, string resourceName) {

0 commit comments

Comments
 (0)