Ticket #3203: bdist_wininst.patch
File bdist_wininst.patch, 924 bytes (added by , 16 years ago) |
---|
-
django/trunk/setup.py
2 2 from distutils.command.install import INSTALL_SCHEMES 3 3 import os 4 import sys 4 5 5 6 # Tell distutils to put the data_files in platform-specific installation … … 24 25 packages.append(package) 25 26 else: 26 data_files.append((dirpath, [os.path.join(dirpath, f) for f in filenames])) 27 data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]]) 28 29 # Small hack for working with bdist_wininst. 30 # See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html 31 if sys.argv[1] == 'bdist_wininst': 32 for file_info in data_files: 33 file_info[0] = '/PURELIB/%s' % file_info[0] 27 34 28 35 # Dynamically calculate the version based on django.VERSION.