diff options
author | Stan Seibert <stan@mtrr.org> | 2013-01-28 15:49:18 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2021-05-09 08:42:39 -0700 |
commit | 1f1bf83bc4b38a36dc0ac6f877f952b103e4de0c (patch) | |
tree | 11984fae53f5f28e32ec49431c5e85511626aac9 | |
parent | 940b70385845857a0f31753b3dba2e30af5684b5 (diff) | |
download | chroma-1f1bf83bc4b38a36dc0ac6f877f952b103e4de0c.tar.gz chroma-1f1bf83bc4b38a36dc0ac6f877f952b103e4de0c.tar.bz2 chroma-1f1bf83bc4b38a36dc0ac6f877f952b103e4de0c.zip |
Use numpy.distutils to lookup numpy inlcude directory
-rw-r--r-- | setup.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -23,6 +23,11 @@ geant4_libs = check_output(['geant4-config','--libs']).split() include_dirs=['src'] if 'VIRTUAL_ENV' in os.environ: include_dirs.append(os.path.join(os.environ['VIRTUAL_ENV'], 'include')) +try: + import numpy.distutils + include_dirs += numpy.distutils.misc_util.get_numpy_include_dirs() +except: + pass # if numpy doesn't exist yet setup( name = 'Chroma', |