diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-09 09:05:19 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-09 09:05:19 (GMT) |
commit | a950f7ff0dad8718b999bdd944f5f48c8640be59 (patch) | |
tree | 801ea523db09498736a08a4419b169cd524065ce | |
parent | 8f0bd5657a384199d9203c753cecdd0a9b1f9bcb (diff) | |
download | cpython-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.
-rw-r--r-- | setup.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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/' |