Skip to content

Commit

Permalink
Merge pull request #74 from timrudge/master
Browse files Browse the repository at this point in the history
Work around in setup.py for use of numpy during build
  • Loading branch information
inducer committed Feb 9, 2015
2 parents fa3a0a2 + fd131f4 commit 2f2b6cc
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 2f2b6cc

Please sign in to comment.