Skip to content

Commit 5ed398d

Browse files
committed
Try loading every dll individually no matter what
Signed-off-by: Roger Aiudi <[email protected]>
1 parent 388d1f5 commit 5ed398d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

setup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,14 @@ def get_output(*args, **kwargs):
210210
"try setting GSSAPI_MAIN_LIB yourself or setting "
211211
"GSSAPI_SUPPORT_DETECT to 'false'")
212212

213-
try:
214-
GSSAPI_LIB = ctypes.CDLL(os.path.join(main_path, main_lib))
215-
except:
216-
GSSAPI_LIB = ctypes.CDLL(main_lib)
213+
with open('dlls.txt') as dlls:
214+
for dll in filter(None, map(str.strip, dlls)):
215+
try:
216+
ctypes.CDLL(os.path.basename(dll))
217+
except Exception as e:
218+
print("!FAILED:", dll, type(e).__name__, e)
219+
220+
GSSAPI_LIB = ctypes.CDLL(os.path.join(main_path, main_lib))
217221

218222

219223
# add in the flag that causes us not to compile from Cython when

0 commit comments

Comments
 (0)