Skip to content

Commit d414eaa

Browse files
authored
Merge pull request #1411 from DWesl/cygwin-build
BLD: Get netCDF-python compiling on Cygwin.
2 parents 25b5dba + 7d6cb4d commit d414eaa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ def _populate_hdf5_info(dirstosearch, inc_dirs, libs, lib_dirs):
262262
for direc in inc_dirs:
263263
hdf5_version = get_hdf5_version(direc)
264264
if hdf5_version is not None:
265+
if sys.platform == "cygwin":
266+
_populate_hdf5_info(dirstosearch, inc_dirs, libs, lib_dirs)
265267
break
266268
# if hdf5 not found, search other standard locations (including those specified in env vars).
267269
if hdf5_version is None:
@@ -353,7 +355,7 @@ def _populate_hdf5_info(dirstosearch, inc_dirs, libs, lib_dirs):
353355
lib_dirs.append(curl_libdir)
354356
inc_dirs.append(curl_incdir)
355357

356-
if sys.platform == 'win32':
358+
if sys.platform == 'win32' or sys.platform == 'cygwin':
357359
runtime_lib_dirs = []
358360
else:
359361
runtime_lib_dirs = lib_dirs

0 commit comments

Comments
 (0)