summaryrefslogtreecommitdiff
path: root/Examples/python/import_packages
Commit message (Collapse)AuthorAgeFilesLines
* Fix a few documentation typosOlly Betts2022-09-291-1/+1
|
* GHA: Fix for pycodestyle check in examplesWilliam S Fulton2022-07-312-2/+2
| | | | | E275 missing whitespace after keyword For pycodestyle 2.9.0 released on 30 July 2022.
* Update everything for dropping Python 3.2 supportOlly Betts2022-07-191-8/+0
|
* Fix various typosluz paz2022-04-1115-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 3Olly Betts2022-03-176-6/+6
| | | | | | | Specify PY2=1 to use Python 2. See #1779 Closes #2235
* Modify examples to be both Python 2 and 3 compatibleWilliam S Fulton2020-08-1512-51/+51
| | | | For removing dependency on 2to3
* Examples: Unify string quoting in the Python sourcesDmitry D. Chernov2019-07-144-13/+13
|
* The Python module import logic has changed to stop obfuscating real ↵William S Fulton2018-12-162-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__.pyWilliam S Fulton2018-12-087-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 WindowsWilliam S Fulton2018-12-0615-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 -builtinWilliam S Fulton2018-12-0415-7/+148
| | | | | | Same as e05b5ea for -builtin. Also added runtime tests to check 'python -m'.
* Fix nstest.py testWilliam S Fulton2018-12-041-6/+7
| | | | | Use subprocess.check_call as os.system won't stop the test in case of errors.
* Drop support for Python classic classesOlly Betts2018-10-122-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 MakefileWilliam S Fulton2018-01-071-1/+3
|
* Minor tweaks in import_packages MakefileWilliam S Fulton2018-01-061-3/+3
|
* Fix out of source import_packages MakefileWilliam S Fulton2018-01-061-1/+1
|
* Fix Makefile and skip testing python-2.4 for import_packages testWilliam S Fulton2018-01-058-9/+33
|
* Replace assert in Python import examples with code that always runs.William S Fulton2017-08-136-6/+12
|
* Add missing print statements to the Python import_packages testsWilliam S Fulton2016-06-063-0/+23
|
* Examples readme file tweakWilliam S Fulton2016-06-051-7/+2
|
* remove builtin tests as they are already covered.Mike Romberg2016-06-0411-93/+1
|
* Apply patch to cleanup whitespace from wsfultonMike Romberg2016-06-046-16/+14
|
* and... remove all the .py files that were copied over from the source tree.Mike Romberg2016-06-031-1/+1
|
* remove -py3 related tests. Move py3 specific code to it's own moduleMike Romberg2016-06-0321-226/+49
|
* copy everything with a .py extension into the build tree (creating dirs if ↵Mike Romberg2016-06-031-4/+5
| | | | needed)
* debugMike Romberg2016-06-031-8/+4
|
* avoid the shell checks involving __init__.pyMike Romberg2016-06-031-2/+8
|
* Something optimizes out empty files and breaks the tests. Put something in.Mike Romberg2016-06-0317-0/+11
|
* split_wrapper -> split_modules to avoid conflict with clean ruleMike Romberg2016-06-0247-1/+2
|
* Add cases for tests without the -py3 flag even when PY3 is set.Mike Romberg2016-06-0224-3/+181
|
* Tests/Examples for the use case of splitting the wrapper.Mike Romberg2016-06-0224-0/+208
| | | | Half of the wrapper in a package and 1/2 is global.
* use %inline for testMike Romberg2016-05-243-8/+4
|
* disable namespace package buildMike Romberg2016-04-051-2/+1
|
* Attempt to calm the testing gods...Mike Romberg2016-04-051-34/+0
|
* use whatever name winders uses for .so files.Mike Romberg2016-04-051-2/+2
|
* Examples (and tests) for python namespace packagesMike Romberg2016-04-052-1/+36
|
* disable namespace package buildMike Romberg2016-04-051-2/+1
|
* spellingMike Romberg2016-04-051-1/+1
|
* Attempt to calm the testing gods...Mike Romberg2016-04-052-42/+45
|
* use whatever name winders uses for .so files.Mike Romberg2016-04-051-2/+2
|
* Don't run example for old pythonsMike Romberg2016-04-052-3/+6
|
* Examples (and tests) for python namespace packagesMike Romberg2016-04-0512-2/+133
|
* Support checking names of old-style classic classesAlec Cooper2016-02-042-4/+16
|
* Remove use of preinst-swig scriptWilliam S Fulton2015-08-2126-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 exampleWilliam S Fulton2015-08-2051-133/+100
|
* autopep8 cleanup of Examples/python whitespaceJon Schlueter2015-05-088-33/+33
| | | | automated cleanup only of the Examples/python example code
* PY3 fixes for import_package exampleWilliam S Fulton2015-04-047-7/+0
|
* Display testname when running the import_packages Python examplesWilliam S Fulton2014-10-078-13/+46
| | | | For easier identification of what is running in these examples.
* Fix Python 3 import_packages/relativeimport2 example cleanWilliam S Fulton2014-10-071-9/+0
| | | | runme3.py files are generated and should not be checked in
* Small fixes to the relative import fix.Johan Hake2014-09-291-1/+2
| | | | | -- Now the tests actually runs -- Corrected the syntax for the fix in the yacc file