in setup.py [0:0]
def get_version(): version = {} with open("tools/_version.py") as fp: exec(fp.read(), version) return version["__version__"]