summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-09 09:05:19 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-05-09 09:05:19 (GMT)
commita950f7ff0dad8718b999bdd944f5f48c8640be59 (patch)
tree801ea523db09498736a08a4419b169cd524065ce /setup.py
parent8f0bd5657a384199d9203c753cecdd0a9b1f9bcb (diff)
downloadcpython-a950f7ff0dad8718b999bdd944f5f48c8640be59.zip
cpython-a950f7ff0dad8718b999bdd944f5f48c8640be59.tar.gz
cpython-a950f7ff0dad8718b999bdd944f5f48c8640be59.tar.bz2
Only look for krb5.h if ssl.h was found.
Fixes bug reported in comment to #728322.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py9
1 files 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/'