Django

Code

Changeset 9107

Show
Ignore:
Timestamp:
09/30/08 20:22:41 (3 months ago)
Author:
ubernostrum
Message:

Change version calculation in setup.py to go with the new VERSION tuple

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/setup.py

    r8313 r9107  
    6767 
    6868# Dynamically calculate the version based on django.VERSION. 
    69 version_tuple = __import__('django').VERSION 
    70 if version_tuple[2] is not None: 
    71     version = "%d.%d_%s" % version_tuple 
    72 else: 
    73     version = "%d.%d" % version_tuple[:2] 
     69version = __import__('django').get_version() 
     70if u'SVN' in version: 
     71    version = ' '.join(version.split(' ')[:-1]) 
    7472 
    7573setup(