aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/utils.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-07-11 17:03:13 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-07-11 21:03:13 +0000
commit3e3444fa96a3fa911e99e1c12f1a0d859563ce2c (patch)
tree0e31161fc63ceb82586c9fcd37851c77a41731a5 /src/_cffi_src/utils.py
parentdbb64bd2a4a63f6071b1ac982b96d5d07bbd8a63 (diff)
downloadcryptography-3e3444fa96a3fa911e99e1c12f1a0d859563ce2c.tar.gz
cryptography-3e3444fa96a3fa911e99e1c12f1a0d859563ce2c.tar.bz2
cryptography-3e3444fa96a3fa911e99e1c12f1a0d859563ce2c.zip
Use a series of constants for OpenSSL version checks (#3037)
* Use a series of constants for OpenSSL version checks. N.B. I removed several qualifiers that were being used to express beta vs. release in OpenSSL version numbers. Reviewers please look closely! * Convert some python as well, also add the file * flake8 * Simplify code, remove functionality that can be expressed more simply * clean up the tests as well * more constants * wrap long lines * reflect feedback * unused * add this back?
Diffstat (limited to 'src/_cffi_src/utils.py')
-rw-r--r--src/_cffi_src/utils.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/_cffi_src/utils.py b/src/_cffi_src/utils.py
index bdce2f3b..00c8badb 100644
--- a/src/_cffi_src/utils.py
+++ b/src/_cffi_src/utils.py
@@ -11,9 +11,8 @@ from distutils.dist import Distribution
from cffi import FFI
-def build_ffi_for_binding(module_name, module_prefix, modules, pre_include="",
- post_include="", libraries=[], extra_compile_args=[],
- extra_link_args=[]):
+def build_ffi_for_binding(module_name, module_prefix, modules, libraries=[],
+ extra_compile_args=[], extra_link_args=[]):
"""
Modules listed in ``modules`` should have the following attributes:
@@ -49,9 +48,7 @@ def build_ffi_for_binding(module_name, module_prefix, modules, pre_include="",
# int foo(int);
# int foo(short);
verify_source = "\n".join(
- [pre_include] +
includes +
- [post_include] +
functions +
customizations
)