From 46ff35310c3cbebc9b5933fbdc3540425541c089 Mon Sep 17 00:00:00 2001 From: Michael Wiencek Date: Wed, 11 Apr 2012 01:05:40 -0500 Subject: [PATCH] Fix "setup.py test" on OS X --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 604336411..8938be617 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ try: do_py2app = True args['app'] = ['tagger.py'] args['name'] = 'Picard' - args['options'] = { 'py2app' : + args['options'] = { 'py2app' : { 'optimize' : 2, 'argv_emulation' : True, @@ -476,7 +476,7 @@ def generate_file(infilename, outfilename, variables): content = content % variables f = file(outfilename, "wt") f.write(content) - f.close() + f.close() try: @@ -506,7 +506,7 @@ try: py2exe.run(self) print "*** creating the NSIS setup script ***" pathname = "installer\picard-setup.nsi" - generate_file(pathname + ".in", pathname, + generate_file(pathname + ".in", pathname, {'name': 'MusicBrainz Picard', 'version': __version__, 'description': 'The next generation MusicBrainz tagger.', @@ -546,7 +546,7 @@ if do_py2app: py2app.run(self) args['scripts'] = [ 'tagger.py' ] - args['cmdclass'] = { 'py2app' : BuildAPP } + args['cmdclass']['py2app'] = BuildAPP # FIXME: this should check for the actual command ('install' vs. 'bdist_nsis', 'py2app', ...), not installed libraries if py2exe is None and do_py2app is False: