From 8549ed651b060f5d42358086085afc0b3d885dc4 Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Fri, 29 Mar 2013 12:29:46 -0400 Subject: Add location of pyublas headers to include path --- setup.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/setup.py b/setup.py index 8d5a9f7..554d644 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,20 @@ try: except OSError: clhep_libs = [] + include_dirs=['src'] + +##### figure out location of pyublas headers +try: + from imp import find_module + file, pathname, descr = find_module("pyublas") + from os.path import join + include_dirs.append(join(pathname, "include")) +except: + pass # Don't throw exceptions if prereqs not installed yet + +##### + if 'VIRTUAL_ENV' in os.environ: include_dirs.append(os.path.join(os.environ['VIRTUAL_ENV'], 'include')) try: -- cgit