swig/Examples/python/import_packages
William S Fulton 51dadaeacd Add example to test the Python module being renamed to __init__.py
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
2018-12-08 22:31:26 +00:00
..
from_init1 Skip Python subprocess calls in import_packages testcase on Windows 2018-12-06 06:50:57 +00:00
from_init2 Skip Python subprocess calls in import_packages testcase on Windows 2018-12-06 06:50:57 +00:00
from_init3 Skip Python subprocess calls in import_packages testcase on Windows 2018-12-06 06:50:57 +00:00
module_is_init Add example to test the Python module being renamed to __init__.py 2018-12-08 22:31:26 +00:00
namespace_pkg Skip Python subprocess calls in import_packages testcase on Windows 2018-12-06 06:50:57 +00:00
relativeimport1 Skip Python subprocess calls in import_packages testcase on Windows 2018-12-06 06:50:57 +00:00
relativeimport2 Skip Python subprocess calls in import_packages testcase on Windows 2018-12-06 06:50:57 +00:00
relativeimport3 Skip Python subprocess calls in import_packages testcase on Windows 2018-12-06 06:50:57 +00:00
same_modnames1 Skip Python subprocess calls in import_packages testcase on Windows 2018-12-06 06:50:57 +00:00
same_modnames2 Skip Python subprocess calls in import_packages testcase on Windows 2018-12-06 06:50:57 +00:00
split_modules Skip Python subprocess calls in import_packages testcase on Windows 2018-12-06 06:50:57 +00:00
Makefile Add example to test the Python module being renamed to __init__.py 2018-12-08 22:31:26 +00:00
README Examples (and tests) for python namespace packages 2016-04-05 10:58:50 -06:00

These are actually regression tests for SF bug #1297 (GH issue #7).
The namespace_pkg is an example of python3's namespace packages.

See individual READMEs in subdirectories.