diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-06-14 01:34:58 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-06-14 01:34:58 -0400 |
commit | 85a3c85a887e4caf21a8d79b71fe41cc94aacc64 (patch) | |
tree | 34cd53f3dd8a84e4b2b6b7a23b07fa3fec9e54fb /setup.py | |
parent | ddb36e59b96c904a09aff3ebc35259ee9522d462 (diff) | |
download | askbot-85a3c85a887e4caf21a8d79b71fe41cc94aacc64.tar.gz askbot-85a3c85a887e4caf21a8d79b71fe41cc94aacc64.tar.bz2 askbot-85a3c85a887e4caf21a8d79b71fe41cc94aacc64.zip |
conditionally removed mysql-python from windows setup.py
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 33 |
1 files changed, 21 insertions, 12 deletions
@@ -1,6 +1,21 @@ import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages +import sys + +install_requires = [ + 'django==1.1.2', + 'django-debug-toolbar==0.7.0', + 'South', + 'recaptcha-client', + 'markdown2', + 'html5lib', + 'python-openid', + 'django-keyedcache', +] +WIN_PLATFORMS = ('win32', 'cygwin',) +if sys.platform not in WIN_PLATFORMS: + install_requires.append('mysql-python') setup( name = "askbot", @@ -12,19 +27,13 @@ setup( keywords = 'forum, community, wiki, Q&A', url = 'http://askbot.org', include_package_data = True, - install_requires = [ - 'django==1.1.2', - 'django-debug-toolbar==0.7.0', - 'South', - 'recaptcha-client', - 'markdown2', - 'html5lib', - 'python-openid', - 'django-keyedcache', - 'mysql-python', - ], + install_requires = install_requires, long_description = """Open Source Question and Answer forum. Based on CNPROG project by Mike Chen and Sailing Cai, project - is inspired by StackOverflow. + inspired by StackOverflow. """, ) + +if sys.platform in WIN_PLATFORMS: + print 'ATTENTION!! please install windows binary mysql-python package' + print 'at http://www.codegood.com/archives/4' |