Paweł Tomulik
5562deec62
Fixed SF bug #1297 (Python imports)
...
This changeset resolves several issues related to python imports.
For example, it's possible now to import modules having same module
names, but belonging to different packages.
From the user's viewpoint, this patch gives a little bit more control on
import directives generated by swig. The user may choose to use relative
or absolute imports (docs are provided in separate PR).
Some details:
- we (still) generate import directives in form 'import a.b.c' which
corresponds to absolute imports in python3 and (the only available)
ambiguous one in python2.
- added -relativeimport option to use explicit relative import syntax
(python3),
Tests are under Examples/python, these are in fact regression tests but
with the current swig testing framework it seems to be impossible to put
appropriate tests under test-suite.
Closes #7
2013-12-24 17:22:25 +00:00
..
callback
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
class
Use a less confusing macro name, SWIG_PYTHON_NO_DEBUG => SWIG_PYTHON_INTERPRETER_NO_DEBUG
2013-06-11 19:15:57 +01:00
constants
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
contract
Use a less confusing macro name, SWIG_PYTHON_NO_DEBUG => SWIG_PYTHON_INTERPRETER_NO_DEBUG
2013-06-11 19:15:57 +01:00
docstrings
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
enum
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
exception
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
exceptproxy
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
extend
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
funcptr
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
funcptr2
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
functor
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
import
Use a less confusing macro name, SWIG_PYTHON_NO_DEBUG => SWIG_PYTHON_INTERPRETER_NO_DEBUG
2013-06-11 19:15:57 +01:00
import_packages
Fixed SF bug #1297 (Python imports)
2013-12-24 17:22:25 +00:00
import_template
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
java
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
libffi
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
multimap
Use a less confusing macro name, SWIG_PYTHON_NO_DEBUG => SWIG_PYTHON_INTERPRETER_NO_DEBUG
2013-06-11 19:15:57 +01:00
operator
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
performance
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
pointer
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
reference
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
simple
Use a less confusing macro name, SWIG_PYTHON_NO_DEBUG => SWIG_PYTHON_INTERPRETER_NO_DEBUG
2013-06-11 19:15:57 +01:00
smartptr
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
std_map
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
std_vector
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
swigrun
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
template
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
2013-04-19 22:47:26 +01:00
varargs
Fix Python examples to compile and run under Python 3
2013-05-26 23:02:13 +01:00
variables
Fix gcc -Waddress warning in variables examples
2013-10-18 06:53:02 +01:00
check.list
Fixed SF bug #1297 (Python imports)
2013-12-24 17:22:25 +00:00
index.html
Fix Python examples to compile and run under Python 3
2013-05-26 23:02:13 +01:00