#NEWLINE# def write_version_py( filename = None ) : #NEWLINE# #INDENT# cnt = "version = '%s'\nshort_version = '%s'\n" #NEWLINE# if ( not filename ) : #NEWLINE# #INDENT# filename = os . path . join ( os . path . dirname ( __file__ ) , 'geopandas' , 'version.py' ) #NEWLINE# #UNINDENT# a = open ( filename , 'w' ) #NEWLINE# try : #NEWLINE# #INDENT# a . write ( ( a % ( FULLVERSION , VERSION ) ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# a . close ( )