From: Martin v. Löwis Date: Sun, 18 May 2003 13:42:58 +0000 (+0000) Subject: Only look for krb5.h if ssl.h was found. Backport of 1.166. X-Git-Tag: v2.2.3c1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=feacecc7dd1d75a617a461a7337f78e0cfe6f2f2;p=thirdparty%2FPython%2Fcpython.git Only look for krb5.h if ssl.h was found. Backport of 1.166. Fixes bug reported in comment to #728322. --- diff --git a/setup.py b/setup.py index c1eb84840dae..3210a690dfde 100644 --- a/setup.py +++ b/setup.py @@ -372,10 +372,11 @@ class PyBuildExt(build_ext): '/usr/contrib/ssl/lib/' ] ) - krb5_h = find_file('krb5.h', inc_dirs, - ['/usr/kerberos/include']) - if krb5_h: - ssl_incs += krb5_h + if ssl_incs is not None: + krb5_h = find_file('krb5.h', inc_dirs, + ['/usr/kerberos/include']) + if krb5_h: + ssl_incs += krb5_h if ssl_incs is not None and ssl_libs is not None: rtlibs = None