diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-12-13 06:07:15 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-12-13 06:07:15 +0000 |
| commit | 49f6d06c2f25467b844d01c206e218550ac1a4bb (patch) | |
| tree | 25a76404bd402a585e6c7a1e6ebdac078bc0eb37 /setup.py | |
| parent | faaec9c28f15695c47660a6b2bf99483fc3bccd1 (diff) | |
Fixed #3117 -- Changed setup.py to get version from django.VERSION dynamically. Thanks for the patch, ymasuda
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -25,9 +25,12 @@ for dirpath, dirnames, filenames in os.walk(django_dir): else: data_files.append((dirpath, [os.path.join(dirpath, f) for f in filenames])) +# Dynamically calculate the version based on django.VERSION. +version = "%d.%d-%s" % (__import__('django').VERSION) + setup( name = "Django", - version = "0.95", + version = version, url = 'http://www.djangoproject.com/', author = 'Lawrence Journal-World', author_email = 'holovaty@gmail.com', |
