Ticket #3203: bdist_wininst.patch

File bdist_wininst.patch, 924 bytes (added by cwt <cwt@…>, 16 years ago)
  • django/trunk/setup.py

     
    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.
Back to Top