Django

Code

Show
Ignore:
Timestamp:
12/30/06 00:17:21 (2 years ago)
Author:
adrian
Message:

Fixed #3203 -- Fixed setup.py bdist_wininst. Thanks for the patch, ymasuda

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/setup.py

    r4195 r4264  
    22from distutils.command.install import INSTALL_SCHEMES 
    33import os 
     4import sys 
    45 
    56# Tell distutils to put the data_files in platform-specific installation 
     
    2425        packages.append(package) 
    2526    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 
     31if sys.argv[1] == 'bdist_wininst': 
     32    for file_info in data_files: 
     33        file_info[0] = '/PURELIB/%s' % file_info[0] 
    2734 
    2835# Dynamically calculate the version based on django.VERSION.