Commit graph

17 commits

Author SHA1 Message Date
Olly Betts
631b41ae7b Use https for swig.org links 2022-10-06 13:16:39 +13:00
Olly Betts
c7af8eabb3 Default to running tests with Python 3
Specify PY2=1 to use Python 2.

See #1779
Closes #2235
2022-03-17 18:55:10 +13:00
William S Fulton
ec2b47ef2a Remove need for Python 2to3
All Python examples and tests have been written to be both Python 2 and Python 3
compatible, removing the need for 2to3 to run the examples or test-suite.

The 2to3 executable is not always available and even when available does not
always work, e.g. with pyenv. An alternative would be to use the lib2to3 Python
module instead, but this isn't available in some older versions of Python 3.

I had this problem on Ubuntu Bionic on Travis:

  checking Examples/python/callback
  pyenv: 2to3-3.8: command not found
  The `2to3-3.8' command exists in these Python versions:
    3.8
    3.8.1

Reference issues:
  https://github.com/pypa/virtualenv/issues/1399
  https://travis-ci.community/t/2to3-command-not-found-in-venv-in-bionic/4495
2020-08-15 18:04:58 +01:00
Olly Betts
431b9b16e7 Update one dead link and remove another 2014-02-24 10:11:11 +13:00
William S Fulton
b3ca22dc33 Fix Python examples to compile and run under Python 3 2013-05-26 23:02:13 +01:00
William S Fulton
92bceacc38 Remove cvs $Header$
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10005 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:47:25 +00:00
William S Fulton
664d00336d update for mailing lists
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-07 18:29:53 +00:00
William S Fulton
3ef946d2d1 html fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 22:13:39 +00:00
Dave Beazley
12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00
Dave Beazley
52386c6406 new example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@840 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 15:30:20 +00:00
Dave Beazley
44f7039d7d new example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@809 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-02 19:26:03 +00:00
Dave Beazley
c4c1a7fc24 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@796 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-01 22:02:03 +00:00
Dave Beazley
4601dec946 new example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@791 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-01 20:39:29 +00:00
Dave Beazley
53bf5fb465 New example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@775 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 21:21:15 +00:00
Dave Beazley
2a39e03463 New example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@756 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 17:12:41 +00:00
Dave Beazley
3621fe789f New example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 22:38:51 +00:00
Dave Beazley
b3e124ac21 Updated some examples
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@490 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-17 21:41:01 +00:00