diff options
author | Gard Spreemann <gspr@nonempty.org> | 2020-01-17 15:37:17 +0100 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2020-01-17 15:37:17 +0100 |
commit | 9acc59fcc1d5001a212e7b9cd6f00a569a625882 (patch) | |
tree | 0f8c3a3c29a9fef6394394a9650198b348bff130 /src/python/gudhi/__init__.py.in | |
parent | 5ccee32ec2ba38743c6b96867db3e1b5151e45e4 (diff) | |
parent | cabc43b34723efa7640313348b844eabe9971e38 (diff) |
Merge tag 'tags/gudhi-release-3.1.0.rc1' into dfsg/latest
Diffstat (limited to 'src/python/gudhi/__init__.py.in')
-rw-r--r-- | src/python/gudhi/__init__.py.in | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/python/gudhi/__init__.py.in b/src/python/gudhi/__init__.py.in index 28bab0e1..79e12fbc 100644 --- a/src/python/gudhi/__init__.py.in +++ b/src/python/gudhi/__init__.py.in @@ -1,14 +1,14 @@ -from importlib import import_module - -"""This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. - See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. - Author(s): Vincent Rouvreau +# This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. +# See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. +# Author(s): Vincent Rouvreau +# +# Copyright (C) 2016 Inria +# +# Modification(s): +# - YYYY/MM Author: Description of the modification - Copyright (C) 2016 Inria - - Modification(s): - - YYYY/MM Author: Description of the modification -""" +from importlib import import_module +from sys import exc_info __author__ = "GUDHI Editorial Board" __copyright__ = "Copyright (C) 2016 Inria" @@ -18,16 +18,16 @@ __version__ = "@GUDHI_VERSION@" __root_source_dir__ = "@CMAKE_SOURCE_DIR@" __debug_info__ = @GUDHI_PYTHON_DEBUG_INFO@ -from sys import exc_info -from importlib import import_module - -__all__ = [@GUDHI_PYTHON_MODULES@] +__all__ = [@GUDHI_PYTHON_MODULES@ @GUDHI_PYTHON_MODULES_EXTRA@] __available_modules = '' __missing_modules = '' -# try to import * from gudhi.__module_name -for __module_name in __all__: +# Try to import * from gudhi.__module_name for default modules. +# Extra modules require an explicit import by the user (mostly because of +# unusual dependencies, but also to avoid cluttering namespace gudhi and +# speed up the basic import) +for __module_name in [@GUDHI_PYTHON_MODULES@]: try: __module = import_module('gudhi.' + __module_name) try: |