mirror of
https://github.com/django/django.git
synced 2025-07-19 17:19:12 +00:00
[1.0.X] Apply fix from [9107]
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9971852234
commit
a59c27ac5d
8
setup.py
8
setup.py
@ -66,11 +66,9 @@ if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
|
|||||||
file_info[0] = '\\PURELIB\\%s' % file_info[0]
|
file_info[0] = '\\PURELIB\\%s' % file_info[0]
|
||||||
|
|
||||||
# Dynamically calculate the version based on django.VERSION.
|
# Dynamically calculate the version based on django.VERSION.
|
||||||
version_tuple = __import__('django').VERSION
|
version_tuple = __import__('django').get_version()
|
||||||
if version_tuple[2] is not None:
|
if u'SVN' in version:
|
||||||
version = "%d.%d_%s" % version_tuple
|
version = ' '.join(version.split(' ')[:-1])
|
||||||
else:
|
|
||||||
version = "%d.%d" % version_tuple[:2]
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "Django",
|
name = "Django",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user