Skip to content

Commit

Permalink
Work around in setup.py for use of numpy during build, also added to …
Browse files Browse the repository at this point in the history
…install_requires
  • Loading branch information
timothy rudge authored and timothy rudge committed Feb 9, 2015
1 parent fa3a0a2 commit fd131f4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 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():
Expand Down Expand Up @@ -205,6 +214,7 @@ def main():
],

install_requires=[
"numpy",
"pytools>=2014.2",
"pytest>=2",
"decorator>=3.2.0",
Expand Down

0 comments on commit fd131f4

Please sign in to comment.