Skip to content

Commit

Permalink
Fixed #3203 (again!) -- Install data files in the right place on MS W…
Browse files Browse the repository at this point in the history
…indows

systems. Thanks, Karen Tracey and cwt@bashell.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Aug 12, 2008
1 parent 54c313a commit e73bf2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ def fullsplit(path, result=None):
elif filenames: elif filenames:
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 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. # Dynamically calculate the version based on django.VERSION.
version_tuple = __import__('django').VERSION version_tuple = __import__('django').VERSION
if version_tuple[2] is not None: if version_tuple[2] is not None:
Expand Down

0 comments on commit e73bf2b

Please sign in to comment.