[hg] galaxy 2977: Fix for GeneTrack egg
details: http://www.bx.psu.edu/hg/galaxy/rev/b08d426dc57f changeset: 2977:b08d426dc57f user: Nate Coraor <nate@bx.psu.edu> date: Fri Nov 06 14:23:21 2009 -0500 description: Fix for GeneTrack egg diffstat: scripts/scramble/scripts/GeneTrack.py | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diffs (33 lines): diff -r 4a7f9fdead89 -r b08d426dc57f scripts/scramble/scripts/GeneTrack.py --- a/scripts/scramble/scripts/GeneTrack.py Fri Nov 06 14:22:44 2009 -0500 +++ b/scripts/scramble/scripts/GeneTrack.py Fri Nov 06 14:23:21 2009 -0500 @@ -35,17 +35,23 @@ sys.argv.append( "--no-svn-revision" ) sys.argv.append( "bdist_egg" ) -print "scramble.py: Creating setup.py for GeneTrack" -setup_py = """from setuptools import setup, find_packages +if not os.access( 'setup.py', os.F_OK ): + print "scramble.py: Creating setup.py for GeneTrack" + setup_py = """from os import walk +from os.path import join +from setuptools import setup, find_packages +def walk_files( top ): + for dir, dirs, files in walk( top ): + yield( dir, [ join( dir, f ) for f in files ] ) setup( name = "GeneTrack", version = "2.0.0-beta-1", - package_data = {'':["*.*"]}, - packages = find_packages(), - zip_safe = True, + packages = ['genetrack','genetrack.scripts'], + data_files = [ f for f in walk_files('tests') ], + zip_safe = False ) """ -open( 'setup.py', 'w' ).write( setup_py ) + open( 'setup.py', 'w' ).write( setup_py ) # do it
participants (1)
-
Greg Von Kuster