setup.py
def get_version():
    """ str: The package version. """

    global_vars = {}

    # Compile and execute the individual file to prevent
    # the package from being automatically loaded.
    source = read(os.path.join("capybara", "version.py"))
    code = compile(source, "version.py", "exec")
    exec(code, global_vars)

    return global_vars['__version__']
def get_version():
    """ str: The package version. """

    global_vars = {}

    # Compile and execute the individual file to prevent
    # the package from being automatically loaded.
    source = read(os.path.join("capybara", "version.py"))
    code = compile(source, "version.py", "exec")
    exec(code, global_vars)

    return global_vars['__version__']
def get_version ( ) : global_vars = { } # Compile and execute the individual file to prevent # the package from being automatically loaded. source = read ( os . path . join ( "capybara" , "version.py" ) ) code = compile ( source , "version.py" , "exec" ) exec ( code , global_vars ) return global_vars [ '__version__' ]
str: The package version.
str : The package version .