File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 18
18
)
19
19
#: Download location for KfW
20
20
KFW_DL = "https://web.mit.edu/KERBEROS/dist"
21
- is64bits = sys .maxsize > 2 ** 32
22
21
23
22
24
23
def kfw_available ():
25
24
"""Return if the main GSSAPI DLL for KfW can be loaded"""
26
25
try : # to load the main GSSAPI DLL
27
- if is64bits is True :
26
+ if sys . maxsize > 2 ** 32 :
28
27
ctypes .WinDLL ('gssapi64.dll' )
29
28
else :
30
29
ctypes .WinDLL ('gssapi32.dll' )
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def get_output(*args, **kwargs):
105
105
link_args = ['-framework' , 'GSS' ]
106
106
elif winkrb_path :
107
107
_libs = os .path .join (
108
- winkrb_path , 'lib' , 'amd64' if sys . maxsize > 2 ** 32 else 'i386'
108
+ winkrb_path , 'lib' , 'amd64' if is64bits else 'i386'
109
109
)
110
110
link_args = (
111
111
['-L%s' % _libs ]
@@ -124,7 +124,7 @@ def get_output(*args, **kwargs):
124
124
'-I%s' % os .path .join (winkrb_path , 'include' ),
125
125
]
126
126
if is64bits :
127
- compile_args .push ('-DMS_WIN64' )
127
+ compile_args .append ('-DMS_WIN64' )
128
128
elif os .environ .get ('MINGW_PREFIX' ):
129
129
compile_args = ['-fPIC' ]
130
130
else :
@@ -185,7 +185,7 @@ def get_output(*args, **kwargs):
185
185
# Plain msys, not running in MINGW_PREFIX. Try to get the lib from one
186
186
_main_lib = (
187
187
'/mingw%d/bin/libgss-3.dll'
188
- % (64 if sys . maxsize > 2 ** 32 else 32 )
188
+ % (64 if is64bits else 32 )
189
189
)
190
190
if os .path .exists (_main_lib ):
191
191
main_lib = _main_lib
You can’t perform that action at this time.
0 commit comments