def get_version(package):
    init_py = open(os.path.join(package, '__init__.py')).read()
    return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
Write a sitecustomize file with optional custom initialization.
dataset/ETHPy150Open ofpiyush/hedwig-py/setup.py/get_version--crossover with--dataset/ETHPy150Open moraes/tipfy/manage/easy_install.py/_generate_sitecustomize