comparison setup.py @ 1662:0fc2c1fd3064

Don't fail for 'python setup.py build'.
author Jean Jordaan <neaj@users.sourceforge.net>
date Tue, 17 Jun 2003 11:03:27 +0000
parents 284c26c1ef19
children 85cb3f524bba
comparison
equal deleted inserted replaced
1661:b9c1226cb600 1662:0fc2c1fd3064
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: setup.py,v 1.53 2003-06-09 23:17:20 richard Exp $ 19 # $Id: setup.py,v 1.54 2003-06-17 11:03:27 neaj Exp $
20 20
21 from distutils.core import setup, Extension 21 from distutils.core import setup, Extension
22 from distutils.util import get_platform 22 from distutils.util import get_platform
23 from distutils.command.build_scripts import build_scripts 23 from distutils.command.build_scripts import build_scripts
24 24
76 continue 76 continue
77 77
78 module = os.path.splitext(os.path.basename(script))[0] 78 module = os.path.splitext(os.path.basename(script))[0]
79 module = string.translate(module, to_module) 79 module = string.translate(module, to_module)
80 cmdopt=self.distribution.command_options 80 cmdopt=self.distribution.command_options
81 if cmdopt['install'].has_key('prefix'): 81 if (cmdopt.has_key('install') and
82 cmdopt['install'].has_key('prefix')):
82 prefix = cmdopt['install']['prefix'][1] 83 prefix = cmdopt['install']['prefix'][1]
83 version = '%d.%d'%sys.version_info[:2] 84 version = '%d.%d'%sys.version_info[:2]
84 prefix = ''' 85 prefix = '''
85 import sys 86 import sys
86 sys.path.insert(1, "%s/lib/python%s/site-packages") 87 sys.path.insert(1, "%s/lib/python%s/site-packages")

Roundup Issue Tracker: http://roundup-tracker.org/