comparison setup.py @ 2894:67bf41bf8165

applied patch [SF#045645]
author Richard Jones <richard@users.sourceforge.net>
date Wed, 10 Nov 2004 22:27:39 +0000
parents fdad30b046e2
children 3e53f30799e3
comparison
equal deleted inserted replaced
2892:2eae5848912d 2894:67bf41bf8165
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.73 2004-10-31 08:56:39 a1s Exp $ 19 # $Id: setup.py,v 1.74 2004-11-10 22:27:39 richard 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 from distutils.command.build import build 24 from distutils.command.build import build
112 # for script in self.scripts] 112 # for script in self.scripts]
113 self.scripts = [script + ".bat" for script in self.scripts] 113 self.scripts = [script + ".bat" for script in self.scripts]
114 114
115 # tweak python path for installations outside main python library 115 # tweak python path for installations outside main python library
116 if cmdopt.get("install", {}).has_key("prefix"): 116 if cmdopt.get("install", {}).has_key("prefix"):
117 prefix = cmdopt['install']['prefix'][1] 117 prefix = os.path.expanduser(cmdopt['install']['prefix'][1])
118 version = '%d.%d'%sys.version_info[:2] 118 version = '%d.%d'%sys.version_info[:2]
119 self.script_preamble = ''' 119 self.script_preamble = '''
120 import sys 120 import sys
121 sys.path.insert(1, "%s/lib/python%s/site-packages") 121 sys.path.insert(1, "%s/lib/python%s/site-packages")
122 '''%(prefix, version) 122 '''%(prefix, version)

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