From fd131f4ab760c207783c3da042e127a331e3a2b2 Mon Sep 17 00:00:00 2001
From: timothy rudge <tjr34@timothys-MacBook-Pro.local>
Date: Mon, 9 Feb 2015 19:22:11 +0000
Subject: [PATCH] Work around in setup.py for use of numpy during build, also
 added to install_requires

---
 setup.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/setup.py b/setup.py
index 6dc78e51..f51ff574 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",
-- 
GitLab