forked from django/django
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed django#17491 -- Honored the version number format expected by d…
…istutils. Fixed django#11236 too. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
- Loading branch information
Showing
2 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,10 @@ def finalize_options(self): | |
self.set_undefined_options('install', ('install_lib', 'install_dir')) | ||
install_data.finalize_options(self) | ||
|
||
if sys.platform == "darwin": | ||
cmdclasses = {'install_data': osx_install_data} | ||
else: | ||
cmdclasses = {'install_data': install_data} | ||
if sys.platform == "darwin": | ||
cmdclasses = {'install_data': osx_install_data} | ||
else: | ||
cmdclasses = {'install_data': install_data} | ||
|
||
def fullsplit(path, result=None): | ||
""" | ||
|
@@ -66,13 +66,11 @@ def fullsplit(path, result=None): | |
file_info[0] = '\\PURELIB\\%s' % file_info[0] | ||
|
||
# Dynamically calculate the version based on django.VERSION. | ||
version = __import__('django').get_version() | ||
if u'SVN' in version: | ||
version = ' '.join(version.split(' ')[:-1]) | ||
version = __import__('django').get_distutils_version() | ||
|
||
setup( | ||
name = "Django", | ||
version = version.replace(' ', '-'), | ||
version = version, | ||
url = 'http://www.djangoproject.com/', | ||
author = 'Django Software Foundation', | ||
author_email = '[email protected]', | ||
|