Django

Code

Changeset 8313

Show
Ignore:
Timestamp:
08/11/08 21:15:00 (4 months ago)
Author:
mtredinnick
Message:

Fixed #3203 (again!) -- Install data files in the right place on MS Windows
systems. Thanks, Karen Tracey and cwt@bashell.com.

Files:

Legend:

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

    r8041 r8313  
    6060        data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]]) 
    6161 
     62# Small hack for working with bdist_wininst. 
     63# See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html 
     64if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst': 
     65    for file_info in data_files: 
     66        file_info[0] = '\\PURELIB\\%s' % file_info[0] 
     67 
    6268# Dynamically calculate the version based on django.VERSION. 
    6369version_tuple = __import__('django').VERSION