Skip to content

Commit 3c7a3ab

Browse files
committed
Backport this fix:
http://mail.python.org/pipermail/python-checkins/2003-April/035592.html so that Python 2.1-maint can be built on RedHat 9
1 parent bde3873 commit 3c7a3ab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,12 @@ def detect_modules(self):
303303
'/usr/contrib/ssl/lib/'
304304
] )
305305

306-
if (ssl_incs is not None and
307-
ssl_libs is not None):
306+
krb5_h = find_file('krb5.h', inc_dirs,
307+
['/usr/kerberos/include'])
308+
if krb5_h:
309+
ssl_incs += krb5_h
310+
311+
if ssl_incs is not None and ssl_libs is not None:
308312
exts.append( Extension('_socket', ['socketmodule.c'],
309313
include_dirs = ssl_incs,
310314
library_dirs = ssl_libs,

0 commit comments

Comments
 (0)