From 7c034ead322faa79ad7b94fe72250ce8a4fd5848 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Fri, 18 May 2018 15:52:46 +1200 Subject: [PATCH] Remove special handling for Python < 2.6 See #701. --- Doc/Manual/Python.html | 72 ++----- .../python/li_std_containers_int_runme.py | 13 +- .../python/python_strict_unicode_runme.py | 12 +- Lib/python/builtin.swg | 20 -- Lib/python/pyhead.swg | 130 +----------- Lib/python/pyinit.swg | 12 -- Lib/python/pyrun.swg | 193 +++--------------- Lib/python/pythreads.swg | 4 +- Source/Modules/python.cxx | 54 +---- 9 files changed, 56 insertions(+), 454 deletions(-) diff --git a/Doc/Manual/Python.html b/Doc/Manual/Python.html index 77ac538b0..881ba275b 100644 --- a/Doc/Manual/Python.html +++ b/Doc/Manual/Python.html @@ -150,9 +150,9 @@

This chapter describes SWIG's support of Python. SWIG is compatible -with most recent Python versions including Python 3.0 and Python 2.6, -as well as older versions dating back to Python 2.0. For the best results, -consider using Python 2.3 or newer. +with most recent Python versions (Python 2.6 and later, including Python 3). +If you still need to generate bindings which work with older versions of +Python, you'll have to use SWIG 3.0.x.

@@ -860,8 +860,8 @@ installation under "Additional include directories".

  • Finally, select the settings for the entire project and go to "Link Options". Add the Python library file to your link libraries. -For example "python21.lib". Also, set the name of the output file to -match the name of your Python module, ie. _example.pyd - Note that _example.dll also worked with Python-2.4 and earlier. +For example "python27.lib". Also, set the name of the output file to +match the name of your Python module, i.e. _example.pyd
  • Build your project. @@ -2290,13 +2290,6 @@ please refer to the python documentation:

    Use of the -builtin option implies a couple of limitations: