Skip to content

Commit

Permalink
Do not use install_requires with numpy/scipy
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Mar 29, 2015
1 parent 1652881 commit e677fda
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@
if not r.startswith('cython')]
SETUP_REQUIRES = []


# list requirements for PyPI
REQUIRES = [r.replace('>=', ' (>= ') + ')'
for r in INSTALL_REQUIRES + SETUP_REQUIRES]
REQUIRES = [r.replace('==', ' (== ') for r in REQUIRES]


# do not attempt to install numpy and scipy until they have eggs available
INSTALL_REQUIRES = [r for r in INSTALL_REQUIRES
if not r.startswith(('numpy', 'scipy'))]


def configuration(parent_package='', top_path=None):
if os.path.exists('MANIFEST'): os.remove('MANIFEST')

Expand All @@ -67,7 +73,10 @@ def configuration(parent_package='', top_path=None):


if __name__ == "__main__":
# purposely fail loudly if numpy or scipy are not available
from numpy.distutils.core import setup
import scipy

setup(
name=DISTNAME,
description=DESCRIPTION,
Expand Down

0 comments on commit e677fda

Please sign in to comment.