Skip to content

Commit b63cb29

Browse files
authored
BLD: Unset runtime_library_dirs on Cygwin
Cygwin doesn't have -rpath. Also the file name will most commonly be /usr/bin/cyggeos_c-1.dll, so make sure the glob allows that.
1 parent 2986338 commit b63cb29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/basemap/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ def run(self):
111111
library_dirs.append(os.path.join(geos_install_prefix, "lib"))
112112
library_dirs.append(os.path.join(geos_install_prefix, "lib64"))
113113
runtime_library_dirs = library_dirs
114-
if os.name == "nt":
114+
if os.name == "nt" or sys.platform == "cygwin":
115115
# On Windows:
116116
# - DLLs get installed under `bin`.
117117
# - We need to inject later the DLL in the wheel using `data_files`.
118118
# - We do not use `runtime_library_dirs` as workaround for a
119119
# `distutils` bug (http://bugs.python.org/issue2437).
120120
library_dirs.append(os.path.join(geos_install_prefix, "bin"))
121121
runtime_library_dirs = []
122-
dlls = glob.glob(os.path.join(geos_install_prefix, "*", "geos_c.dll"))
122+
dlls = glob.glob(os.path.join(geos_install_prefix, "*", "*geos_c*.dll"))
123123
if dlls:
124124
data_files.append(("../..", sorted(dlls)))
125125

0 commit comments

Comments
 (0)