Code

Don't fail for 'python setup.py build'.
authorneaj <neaj@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 17 Jun 2003 11:03:27 +0000 (11:03 +0000)
committerneaj <neaj@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 17 Jun 2003 11:03:27 +0000 (11:03 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1730 57a73879-2fb5-44c3-a270-3262357dd7e2

setup.py

index 367293d2b3a992ada67299ae14bc2090cad61105..e178318aaf8838fccfb1945f97224a81f528afac 100644 (file)
--- 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 = '''