From a950f7ff0dad8718b999bdd944f5f48c8640be59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 9 May 2003 09:05:19 +0000 Subject: Only look for krb5.h if ssl.h was found. Fixes bug reported in comment to #728322. --- setup.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index afb8bbb..c8c4467 100644 --- a/setup.py +++ b/setup.py @@ -447,10 +447,11 @@ class PyBuildExt(build_ext): '/usr/contrib/ssl/include/' ] ) - 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 ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs, ['/usr/local/ssl/lib', '/usr/contrib/ssl/lib/' -- cgit v0.12