Author: ubernostrum
Date: 2008-09-30 20:23:55 -0500 (Tue, 30 Sep 2008)
New Revision: 9108
Modified:
django/branches/releases/1.0.X/setup.py
Log:
[1.0.X] Apply fix from [9107]
Modified: django/branches/releases/1.0.X/setup.py
===================================================================
--- django/branches/releases/1.0.X/setup.py 2008-10-01 01:22:41 UTC (rev
9107)
+++ django/branches/releases/1.0.X/setup.py 2008-10-01 01:23:55 UTC (rev
9108)
@@ -66,11 +66,9 @@
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:
- version = "%d.%d_%s" % version_tuple
-else:
- version = "%d.%d" % version_tuple[:2]
+version_tuple = __import__('django').get_version()
+if u'SVN' in version:
+ version = ' '.join(version.split(' ')[:-1])
setup(
name = "Django",
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---