Remove minimum Python version check
The version checking was historically done to deal with different versions and importing the low-level Python module. Then it was used to try and help when using -py3. A minimum version check implies that the wrappers work with any version >= 2.7, which is not really correct. The correct thing to do is to check that the exact version used matches the one that the C layer was compiled against, which can only be left for the user to do, perhaps using %pythonbegin. Issue #1779
This commit is contained in:
parent
469f694ae6
commit
b737a64ec5
1 changed files with 0 additions and 2 deletions
|
|
@ -867,8 +867,6 @@ public:
|
|||
Printv(f_shadow_py, "\n", f_shadow_begin, "\n", NIL);
|
||||
|
||||
Printv(f_shadow_py, "\nfrom sys import version_info as _swig_python_version_info\n", NULL);
|
||||
Printv(f_shadow_py, "if _swig_python_version_info < (2, 7, 0):\n", NULL);
|
||||
Printv(f_shadow_py, tab4, "raise RuntimeError(\"Python 2.7 or later required\")\n\n", NULL);
|
||||
|
||||
if (Len(f_shadow_after_begin) > 0)
|
||||
Printv(f_shadow_py, f_shadow_after_begin, "\n", NIL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue