From: neaj Date: Tue, 17 Jun 2003 11:03:27 +0000 (+0000) Subject: Don't fail for 'python setup.py build'. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=56c55a9dd67b8af2117bea24bb02f9d7306ea843;p=roundup.git Don't fail for 'python setup.py build'. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1730 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/setup.py b/setup.py index 367293d..e178318 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: setup.py,v 1.53 2003-06-09 23:17:20 richard Exp $ +# $Id: setup.py,v 1.54 2003-06-17 11:03:27 neaj Exp $ from distutils.core import setup, Extension from distutils.util import get_platform @@ -78,7 +78,8 @@ class build_scripts_create(build_scripts): module = os.path.splitext(os.path.basename(script))[0] module = string.translate(module, to_module) cmdopt=self.distribution.command_options - if cmdopt['install'].has_key('prefix'): + if (cmdopt.has_key('install') and + cmdopt['install'].has_key('prefix')): prefix = cmdopt['install']['prefix'][1] version = '%d.%d'%sys.version_info[:2] prefix = '''