Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix a few documentation typos | Olly Betts | 2022-09-29 | 1 | -1/+1 |
| | |||||
* | GHA: Fix for pycodestyle check in examples | William S Fulton | 2022-07-31 | 2 | -2/+2 |
| | | | | | E275 missing whitespace after keyword For pycodestyle 2.9.0 released on 30 July 2022. | ||||
* | Update everything for dropping Python 3.2 support | Olly Betts | 2022-07-19 | 1 | -8/+0 |
| | |||||
* | Fix various typos | luz paz | 2022-04-11 | 15 | -15/+15 |
| | | | Found via `codespell -q 3 -L ans,anumber,ba,bae,chello,clos,cmo,coo,dout,fo,funktion,goin,inout,methid,nd,nin,nnumber,object,objekt,od,ois,packag,parm,parms,pres,statics,strack,struc,tempdate,te,thru,uint,upto,writen` | ||||
* | Default to running tests with Python 3 | Olly Betts | 2022-03-17 | 6 | -6/+6 |
| | | | | | | | Specify PY2=1 to use Python 2. See #1779 Closes #2235 | ||||
* | Modify examples to be both Python 2 and 3 compatible | William S Fulton | 2020-08-15 | 12 | -51/+51 |
| | | | | For removing dependency on 2to3 | ||||
* | Examples: Unify string quoting in the Python sources | Dmitry D. Chernov | 2019-07-14 | 4 | -13/+13 |
| | |||||
* | The Python module import logic has changed to stop obfuscating real ↵ | William S Fulton | 2018-12-16 | 2 | -1/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | ImportError problems. Only one import of the low-level C/C++ module from the pure Python module is attempted now. Previously a second import of the low-level C/C++ module was attempted after an ImportError occurred and was done to support 'split modules'. A 'split module' is a configuration where the pure Python module is a module within a Python package and the low-level C/C++ module is a global Python module. Now a 'split module' configuration is no longer supported by default. This configuration can be supported with a simple customization, such as: %module(package="mypackage", moduleimport="import $module") foo or if using -builtin: %module(package="mypackage", moduleimport="from $module import *") foo instead of %module(package="mypackage") foo See the updated Python chapter titled "Location of modules" in the documentation. Closes #848 #1343 | ||||
* | Add example to test the Python module being renamed to __init__.py | William S Fulton | 2018-12-08 | 7 | -0/+95 |
| | | | | | | | | | | This examples tests the SWIG generated module being placed into a directory and then renamed __init__.py to convert the module into a package. This ability stopped working in swig-3.0.9. However, only Python 2.7 or 3.3 and later work. If Python 3.2 support is needed, use moduleimport in %module to customise the import code. Issue #1282 | ||||
* | Skip Python subprocess calls in import_packages testcase on Windows | William S Fulton | 2018-12-06 | 15 | -60/+121 |
| | | | | | | | | | | | | | Getting these kind of errors on Appveyor which uses mingw/cygwin to run a Python interpreter: Native windows Python 3.6 running under cygwin and mingw Python 3.7 running under mingw: Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python Cygwin Python 2.7 running under cygwin: 0 [main] python2.7 496 child_info_fork::abort: address space needed by '_foo.dll' (0x6D0000) is already occupied | ||||
* | Fix for running 'python -m' when using swig -builtin | William S Fulton | 2018-12-04 | 15 | -7/+148 |
| | | | | | | Same as e05b5ea for -builtin. Also added runtime tests to check 'python -m'. | ||||
* | Fix nstest.py test | William S Fulton | 2018-12-04 | 1 | -6/+7 |
| | | | | | Use subprocess.check_call as os.system won't stop the test in case of errors. | ||||
* | Drop support for Python classic classes | Olly Betts | 2018-10-12 | 2 | -8/+0 |
| | | | | | | | | | | | | There were only needed to support Python < 2.2, and we now require at least Python 2.6. Conflicts: .travis.yml Examples/test-suite/python/autodoc_runme.py Source/Modules/python.cxx This is a cherry-pick and merge from patch in #1261 | ||||
* | Fix out of source clean target in import_packages Makefile | William S Fulton | 2018-01-07 | 1 | -1/+3 |
| | |||||
* | Minor tweaks in import_packages Makefile | William S Fulton | 2018-01-06 | 1 | -3/+3 |
| | |||||
* | Fix out of source import_packages Makefile | William S Fulton | 2018-01-06 | 1 | -1/+1 |
| | |||||
* | Fix Makefile and skip testing python-2.4 for import_packages test | William S Fulton | 2018-01-05 | 8 | -9/+33 |
| | |||||
* | Replace assert in Python import examples with code that always runs. | William S Fulton | 2017-08-13 | 6 | -6/+12 |
| | |||||
* | Add missing print statements to the Python import_packages tests | William S Fulton | 2016-06-06 | 3 | -0/+23 |
| | |||||
* | Examples readme file tweak | William S Fulton | 2016-06-05 | 1 | -7/+2 |
| | |||||
* | remove builtin tests as they are already covered. | Mike Romberg | 2016-06-04 | 11 | -93/+1 |
| | |||||
* | Apply patch to cleanup whitespace from wsfulton | Mike Romberg | 2016-06-04 | 6 | -16/+14 |
| | |||||
* | and... remove all the .py files that were copied over from the source tree. | Mike Romberg | 2016-06-03 | 1 | -1/+1 |
| | |||||
* | remove -py3 related tests. Move py3 specific code to it's own module | Mike Romberg | 2016-06-03 | 21 | -226/+49 |
| | |||||
* | copy everything with a .py extension into the build tree (creating dirs if ↵ | Mike Romberg | 2016-06-03 | 1 | -4/+5 |
| | | | | needed) | ||||
* | debug | Mike Romberg | 2016-06-03 | 1 | -8/+4 |
| | |||||
* | avoid the shell checks involving __init__.py | Mike Romberg | 2016-06-03 | 1 | -2/+8 |
| | |||||
* | Something optimizes out empty files and breaks the tests. Put something in. | Mike Romberg | 2016-06-03 | 17 | -0/+11 |
| | |||||
* | split_wrapper -> split_modules to avoid conflict with clean rule | Mike Romberg | 2016-06-02 | 47 | -1/+2 |
| | |||||
* | Add cases for tests without the -py3 flag even when PY3 is set. | Mike Romberg | 2016-06-02 | 24 | -3/+181 |
| | |||||
* | Tests/Examples for the use case of splitting the wrapper. | Mike Romberg | 2016-06-02 | 24 | -0/+208 |
| | | | | Half of the wrapper in a package and 1/2 is global. | ||||
* | use %inline for test | Mike Romberg | 2016-05-24 | 3 | -8/+4 |
| | |||||
* | disable namespace package build | Mike Romberg | 2016-04-05 | 1 | -2/+1 |
| | |||||
* | Attempt to calm the testing gods... | Mike Romberg | 2016-04-05 | 1 | -34/+0 |
| | |||||
* | use whatever name winders uses for .so files. | Mike Romberg | 2016-04-05 | 1 | -2/+2 |
| | |||||
* | Examples (and tests) for python namespace packages | Mike Romberg | 2016-04-05 | 2 | -1/+36 |
| | |||||
* | disable namespace package build | Mike Romberg | 2016-04-05 | 1 | -2/+1 |
| | |||||
* | spelling | Mike Romberg | 2016-04-05 | 1 | -1/+1 |
| | |||||
* | Attempt to calm the testing gods... | Mike Romberg | 2016-04-05 | 2 | -42/+45 |
| | |||||
* | use whatever name winders uses for .so files. | Mike Romberg | 2016-04-05 | 1 | -2/+2 |
| | |||||
* | Don't run example for old pythons | Mike Romberg | 2016-04-05 | 2 | -3/+6 |
| | |||||
* | Examples (and tests) for python namespace packages | Mike Romberg | 2016-04-05 | 12 | -2/+133 |
| | |||||
* | Support checking names of old-style classic classes | Alec Cooper | 2016-02-04 | 2 | -4/+16 |
| | |||||
* | Remove use of preinst-swig script | William S Fulton | 2015-08-21 | 26 | -138/+220 |
| | | | | | | | | | | | | | Complete the prototype removal in ca1431. The script prevents SWIGTOOL=gdb from working as gdb can't be used to debug a shell script, it requires a binary. Add support for SWIGTOOL in all the examples. SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles. See issue #473. | ||||
* | Remove realpath from python/import_packages example | William S Fulton | 2015-08-20 | 51 | -133/+100 |
| | |||||
* | autopep8 cleanup of Examples/python whitespace | Jon Schlueter | 2015-05-08 | 8 | -33/+33 |
| | | | | automated cleanup only of the Examples/python example code | ||||
* | PY3 fixes for import_package example | William S Fulton | 2015-04-04 | 7 | -7/+0 |
| | |||||
* | Display testname when running the import_packages Python examples | William S Fulton | 2014-10-07 | 8 | -13/+46 |
| | | | | For easier identification of what is running in these examples. | ||||
* | Fix Python 3 import_packages/relativeimport2 example clean | William S Fulton | 2014-10-07 | 1 | -9/+0 |
| | | | | runme3.py files are generated and should not be checked in | ||||
* | Small fixes to the relative import fix. | Johan Hake | 2014-09-29 | 1 | -1/+2 |
| | | | | | -- Now the tests actually runs -- Corrected the syntax for the fix in the yacc file |