diff --git a/setup.py b/setup.py index 6dc78e516442fef9429e462a03ef7c7186f88eb6..f51ff574f9df5d6d6d5916a605f5d25a39a6c92b 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,14 @@ #!/usr/bin/env python # -*- coding: latin-1 -*- +from setuptools.command.build_ext import build_ext as _build_ext + +class build_ext(_build_ext): + def finalize_options(self): + _build_ext.finalize_options(self) + # Prevent numpy from thinking it is still in its setup process: + __builtins__.__NUMPY_SETUP__ = False + import numpy + self.include_dirs.append(numpy.get_include()) def get_config_schema(): @@ -205,6 +214,7 @@ def main(): ], install_requires=[ + "numpy", "pytools>=2014.2", "pytest>=2", "decorator>=3.2.0",