diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-06 11:10:40 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-06 11:10:40 -0800 |
commit | 50f233efe4d37a20b4372cf21f1c462914ea5d40 (patch) | |
tree | beb48e5fce2955684435850c740c82e182dd4d60 | |
parent | 6078221d25fd3eddef83a63ce026efd24c0a2107 (diff) | |
download | cryptography-50f233efe4d37a20b4372cf21f1c462914ea5d40.tar.gz cryptography-50f233efe4d37a20b4372cf21f1c462914ea5d40.tar.bz2 cryptography-50f233efe4d37a20b4372cf21f1c462914ea5d40.zip |
Check to see if a binding is available before trying to install it
-rw-r--r-- | setup.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -47,10 +47,12 @@ class cffi_build(build): from cryptography.hazmat.primitives import constant_time, padding self.distribution.ext_modules = [ - Binding().ffi.verifier.get_extension(), constant_time._ffi.verifier.get_extension(), padding._ffi.verifier.get_extension() ] + if Binding.is_available(): + self.distribution.ext_modules.append(Binding().ffi.verifier.get_extension()) + build.finalize_options(self) |