diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-18 13:42:58 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-18 13:42:58 +0000 |
commit | b8e58c7667b80f2627a9583e98b9154cc852b911 (patch) | |
tree | 649fec26584ed4acd98a70302f84b374a1351e47 | |
parent | ac4835e3d9d281316b7819151f2e2a87819b281c (diff) | |
download | cpython-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.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |