(version_cache=[])
return version
Get the full version of SymPy being released (like 0.7.3.rc1)
Get the full version of SymPy being released (like 0.7.3.rc1)
Get the full version of SymPy being released ( like 0 . 7 . 3 . rc1 )
def get_sympy_version(version_cache=[]):
    """
    Get the full version of SymPy being released (like 0.7.3.rc1)
    """
    if version_cache:
        return version_cache[0]
    if not exists("/home/vagrant/repos/sympy"):
        gitrepos()
    with cd("/home/vagrant/repos/sympy"):
        version = run('python -c "import sympy;print(sympy.__version__)"')
    assert '\n' not in version
    assert ' ' not in version
    assert '\t' not in version
    version_cache.append(version)
    return version
def get_sympy_version ( version_cache = [ ] ) : if version_cache : return version_cache [ 0 ] if not exists ( "/home/vagrant/repos/sympy" ) : gitrepos ( ) with cd ( "/home/vagrant/repos/sympy" ) : version = run ( 'python -c "import sympy;print(sympy.__version__)"' ) assert '\n' not in version assert ' ' not in version assert '\t' not in version version_cache . append ( version ) return version