From 56c55a9dd67b8af2117bea24bb02f9d7306ea843 Mon Sep 17 00:00:00 2001 From: neaj Date: Tue, 17 Jun 2003 11:03:27 +0000 Subject: [PATCH] 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 --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 = ''' -- 2.30.2