summaryrefslogtreecommitdiff
path: root/Examples/python/import_packages/split_modules
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.
* Fix various typosluz paz2022-04-112-2/+2
| | | 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`
* Modify examples to be both Python 2 and 3 compatibleWilliam S Fulton2020-08-152-6/+6
| | | | For removing dependency on 2to3
* 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
* Skip Python subprocess calls in import_packages testcase on WindowsWilliam S Fulton2018-12-062-4/+14
| | | | | | | | | | | | | 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-042-0/+12
| | | | | | Same as e05b5ea for -builtin. Also added runtime tests to check 'python -m'.
* Fix out of source clean target in import_packages MakefileWilliam S Fulton2018-01-071-1/+3
|
* Fix Makefile and skip testing python-2.4 for import_packages testWilliam S Fulton2018-01-051-4/+4
|
* Replace assert in Python import examples with code that always runs.William S Fulton2017-08-132-2/+4
|
* Add missing print statements to the Python import_packages testsWilliam S Fulton2016-06-062-0/+14
|
* 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-045-14/+12
|
* remove -py3 related tests. Move py3 specific code to it's own moduleMike Romberg2016-06-0319-181/+2
|
* 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-0246-0/+386