##// 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
12 lines | 527 B | text/x-python | PythonLexer
try:
import argparse
# Workaround an argparse bug, FIXED in argparse 1.1.0
if 'RawTextHelpFormatterArgumentDefaultsHelpFormatter' in argparse.__all__:
import itertools
argparse.__all__ = list(itertools.chain( [i for i in argparse.__all__
if i != 'RawTextHelpFormatterArgumentDefaultsHelpFormatter'],
['RawTextHelpFormatter', 'ArgumentDefaultsHelpFormatter']))
argparse.__all__.append('SUPPRESS')
from argparse import *
except ImportError:
from _argparse import *