Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3203 -- Fixed setup.py bdist_wininst. Thanks for the patch, ym…

…asuda

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 911f0cdf180a714314d968113844a32d94581829 1 parent 5a01f84
Adrian Holovaty authored December 30, 2006

Showing 1 changed file with 8 additions and 1 deletion. Show diff stats Hide diff stats

  1. 9  setup.py
9  setup.py
... ...
@@ -1,6 +1,7 @@
1 1
 from distutils.core import setup
2 2
 from distutils.command.install import INSTALL_SCHEMES
3 3
 import os
  4
+import sys
4 5
 
5 6
 # Tell distutils to put the data_files in platform-specific installation
6 7
 # locations. See here for an explanation:
@@ -23,7 +24,13 @@
23 24
         package = dirpath[len_root_dir:].lstrip('/').replace('/', '.')
24 25
         packages.append(package)
25 26
     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
  31
+if sys.argv[1] == 'bdist_wininst':
  32
+    for file_info in data_files:
  33
+        file_info[0] = '/PURELIB/%s' % file_info[0]
27 34
 
28 35
 # Dynamically calculate the version based on django.VERSION.
29 36
 version = "%d.%d-%s" % (__import__('django').VERSION)

0 notes on commit 911f0cd

Please sign in to comment.
Something went wrong with that request. Please try again.