summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-18 13:42:58 +0000
committerMartin v. Löwis <martin@v.loewis.de>2003-05-18 13:42:58 +0000
commitb8e58c7667b80f2627a9583e98b9154cc852b911 (patch)
tree649fec26584ed4acd98a70302f84b374a1351e47
parentac4835e3d9d281316b7819151f2e2a87819b281c (diff)
downloadcpython-b8e58c7667b80f2627a9583e98b9154cc852b911.tar.gz
Only look for krb5.h if ssl.h was found. Backport of 1.166.
Fixes bug reported in comment to #728322.
-rw-r--r--setup.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index c1eb84840d..3210a690df 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