summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-12-13 06:07:15 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-12-13 06:07:15 +0000
commit49f6d06c2f25467b844d01c206e218550ac1a4bb (patch)
tree25a76404bd402a585e6c7a1e6ebdac078bc0eb37 /setup.py
parentfaaec9c28f15695c47660a6b2bf99483fc3bccd1 (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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 9c189ebf75..f403029efe 100644
--- a/setup.py
+++ b/setup.py
@@ -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',