#NEWLINE# def main( self ) : #NEWLINE# #INDENT# delete ( 'build' , 'dist' , 'MANIFEST' , ( local . cwd // '*.egg-info' ) ) #NEWLINE# if self . publish : #NEWLINE# #INDENT# print ( 'registering...' ) #NEWLINE# local . python ( 'setup.py' , 'register' ) #NEWLINE# print ( 'uploading zip and tar.gz' ) #NEWLINE# local . python ( 'setup.py' , 'sdist' , '--formats=zip,gztar' , 'upload' ) #NEWLINE# print ( 'uploading win installer' ) #NEWLINE# local . python ( 'setup.py' , 'bdist_wininst' , '--plat-name=win32' , 'upload' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# local . python ( 'setup.py' , 'sdist' , '--formats=zip,gztar' ) #NEWLINE# local . python ( 'setup.py' , 'bdist_wininst' , '--plat-name=win32' ) #NEWLINE# #UNINDENT# delete ( 'build' , ( local . cwd // '*.egg-info' ) ) #NEWLINE# print ( 'Built' , [ self . basename for f in ( local . cwd / 'dist' ) ] )