@task
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 (' DCTB ' not in version)
 version_cache.append(version)
 return version

@ task 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 ( ' DCTB ' not in version ) version_cache . append ( version ) return version
get the full version of sympy being released .