We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4651f77 commit 2161e14Copy full SHA for 2161e14
setup.py
@@ -66,11 +66,9 @@ def fullsplit(path, result=None):
66
file_info[0] = '\\PURELIB\\%s' % file_info[0]
67
68
# 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]
+version = __import__('django').get_version()
+if u'SVN' in version:
+ version = ' '.join(version.split(' ')[:-1])
74
75
setup(
76
name = "Django",
0 commit comments