Author: adrian
Date: 2006-12-30 00:17:21 -0600 (Sat, 30 Dec 2006)
New Revision: 4264

Modified:
  django/trunk/setup.py
Log:
Fixed #3203 -- Fixed setup.py bdist_wininst. Thanks for the patch, ymasuda

Modified: django/trunk/setup.py
===================================================================
--- django/trunk/setup.py       2006-12-30 06:14:39 UTC (rev 4263)
+++ django/trunk/setup.py       2006-12-30 06:17:21 UTC (rev 4264)
@@ -1,6 +1,7 @@
from distutils.core import setup
from distutils.command.install import INSTALL_SCHEMES
import os
+import sys

# Tell distutils to put the data_files in platform-specific installation
# locations. See here for an explanation:
@@ -23,8 +24,14 @@
        package = dirpath[len_root_dir:].lstrip('/').replace('/', '.')
        packages.append(package)
    else:
-        data_files.append((dirpath, [os.path.join(dirpath, f) for f in 
filenames]))
+        data_files.append([dirpath, [os.path.join(dirpath, f) for f in 
filenames]])

+# Small hack for working with bdist_wininst.
+# See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html
+if sys.argv[1] == 'bdist_wininst':
+    for file_info in data_files:
+        file_info[0] = '/PURELIB/%s' % file_info[0]
+
# Dynamically calculate the version based on django.VERSION.
version = "%d.%d-%s" % (__import__('django').VERSION)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to