Author: ubernostrum
Date: 2008-09-30 20:22:41 -0500 (Tue, 30 Sep 2008)
New Revision: 9107

Modified:
   django/trunk/setup.py
Log:
Change version calculation in setup.py to go with the new VERSION tuple


Modified: django/trunk/setup.py
===================================================================
--- django/trunk/setup.py       2008-09-30 22:31:06 UTC (rev 9106)
+++ django/trunk/setup.py       2008-10-01 01:22:41 UTC (rev 9107)
@@ -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 = __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
-~----------~----~----~----~------~----~------~--~---

Reply via email to