Ticket #3203: alpha_2-bdist_wininst.patch

File alpha_2-bdist_wininst.patch, 622 bytes (added by cwt <cwt@…>, 7 years ago)

for 1.0-alpha_2

  • setup.py

    old new  
    5959    elif filenames:
    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 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
    6470if version_tuple[2] is not None:
Back to Top