Commit 1b8ab430 authored by Remi Perenon's avatar Remi Perenon
Browse files

Corrections on setup file

parent 1eb24a00
......@@ -38,7 +38,8 @@ include_dirs = ['Include']
python_version = 'python%d.%d' % sys.version_info[:2]
netcdf_h_search_paths = [os.path.join(sys.prefix,'include','Scientific'),
netcdf_h_search_paths = [os.environ.get('NETCDF_HEADER_FILE_PATH'),
os.path.join(sys.prefix,'include','Scientific'),
os.path.join(sys.prefix,'include',python_version,'Scientific'),
os.path.join(sys.prefix,'local','include',python_version,'Scientific')]
......@@ -52,7 +53,8 @@ for path in netcdf_h_search_paths:
break
if netcdf_h is None:
raise FileError("No suitable NetCDF header found.")
print("/!\ No suitable NetCDF header found.")
sys.exit(1)
compile_args.append("-DNUMPY=1")
import numpy.distutils.misc_util
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment