Changeset 8215 for django/branches/gis/setup.py
- Timestamp:
- 08/05/08 12:15:33 (4 months ago)
- Files:
-
- django/branches/gis (modified) (1 prop)
- django/branches/gis/setup.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis
- Property svnmerge-integrated changed from /django/trunk:1-7978 to /django/trunk:1-8214
django/branches/gis/setup.py
r7768 r8215 1 1 from distutils.core import setup 2 from distutils.command.install_data import install_data 2 3 from distutils.command.install import INSTALL_SCHEMES 3 4 import os 4 5 import sys 6 7 class osx_install_data(install_data): 8 # On MacOS, the platform-specific lib dir is /System/Library/Framework/Python/.../ 9 # which is wrong. Python 2.5 supplied with MacOS 10.5 has an Apple-specific fix 10 # for this in distutils.command.install_data#306. It fixes install_lib but not 11 # install_data, which is why we roll our own install_data class. 12 13 def finalize_options(self): 14 # By the time finalize_options is called, install.install_lib is set to the 15 # fixed directory, so we set the installdir to install_lib. The 16 # install_data class uses ('install_data', 'install_dir') instead. 17 self.set_undefined_options('install', ('install_lib', 'install_dir')) 18 install_data.finalize_options(self) 19 20 if sys.platform == "darwin": 21 cmdclasses = {'install_data': osx_install_data} 22 else: 23 cmdclasses = {'install_data': install_data} 5 24 6 25 def fullsplit(path, result=None): … … 56 75 description = 'A high-level Python Web framework that encourages rapid development and clean, pragmatic design.', 57 76 packages = packages, 77 cmdclass = cmdclasses, 58 78 data_files = data_files, 59 79 scripts = ['django/bin/django-admin.py'],
