##// END OF EJS Templates
Unbundle of all external modules....
Unbundle of all external modules. Move all libraries in external into subfolders and place a custom __init__.py into each of them. This way the system installed ones are tried first, before falling back to the bundled ones. Now every distribution can properly depend on the upstream library. (e.g. bundled libraries are not allowed in fedora) Signed-off-by: Toshio Ernie Kuratomi <toshio@fedoraproject.org> Signed-off-by: Thomas Spura <tomspur@fedoraproject.org>

File last commit:

r3408:261328d5
r3408:261328d5
Show More
__init__.py
8 lines | 330 B | text/x-python | PythonLexer
Thomas Spura
Unbundle of all external modules....
r3408 try:
import validate
if '__docformat__' in validate.__all__ and validate.__version__.split('.') >= ['1', '0', '1']:
# __docformat__ was removed in 1.0.1 but
validate.__all__ = [i for i in validate.__all__ if i != '__docformat__']
from validate import *
except ImportError:
from _validate import *