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
This commit is contained in:
parent
faaec9c28f
commit
49f6d06c2f
5
setup.py
5
setup.py
|
@ -25,9 +25,12 @@ for dirpath, dirnames, filenames in os.walk(django_dir):
|
||||||
else:
|
else:
|
||||||
data_files.append((dirpath, [os.path.join(dirpath, f) for f in filenames]))
|
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(
|
setup(
|
||||||
name = "Django",
|
name = "Django",
|
||||||
version = "0.95",
|
version = version,
|
||||||
url = 'http://www.djangoproject.com/',
|
url = 'http://www.djangoproject.com/',
|
||||||
author = 'Lawrence Journal-World',
|
author = 'Lawrence Journal-World',
|
||||||
author_email = 'holovaty@gmail.com',
|
author_email = 'holovaty@gmail.com',
|
||||||
|
|
Loading…
Reference in New Issue