summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-12 02:15:00 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-12 02:15:00 +0000
commite73bf2bdd9a6342e8bf10c78ca94415e02cb8838 (patch)
tree4488555844348822e196e73e637b19f69e61778f /setup.py
parent54c313af601b07d8fbf2a7a3f24524bf6bd4ed8d (diff)
Fixed #3203 (again!) -- Install data files in the right place on MS Windows
systems. Thanks, Karen Tracey and cwt@bashell.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index c5ae133b34..70f3cbc041 100644
--- a/setup.py
+++ b/setup.py
@@ -59,6 +59,12 @@ for dirpath, dirnames, filenames in os.walk(django_dir):
elif 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 len(sys.argv) > 1 and 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_tuple = __import__('django').VERSION
if version_tuple[2] is not None: