Fix for install requires

This commit is contained in:
Hsiaoming Yang
2014-11-27 14:47:30 +08:00
parent 5f066d9427
commit b178621815
2 changed files with 6 additions and 7 deletions

View File

@@ -7,12 +7,8 @@ python:
- "3.4"
- "pypy"
env:
- DEPS=Pillow
- DEPS=Pillow wheezy.captcha
install:
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then pip install -q $DEPS; fi
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then pip install -q Pillow wheezy.captcha; fi
script:
- python setup.py -q nosetests

View File

@@ -8,11 +8,15 @@ try:
except ImportError:
from distutils.core import setup
import sys
import captcha
from email.utils import parseaddr
author, author_email = parseaddr(captcha.__author__)
kwargs = {}
if not hasattr(sys, 'pypy_version_info'):
kwargs['install_requires'] = ['Pillow']
author, author_email = parseaddr(captcha.__author__)
def fopen(filename):
@@ -32,7 +36,6 @@ setup(
license='BSD',
zip_safe=False,
include_package_data=True,
install_requires=['Pillow'],
test_require=['nose'],
test_suite='nose.collector',
classifiers=[