diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2023-04-30 12:14:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-30 18:14:28 +0200 |
| commit | be18c839856a9b2af4381fef70694d581b1262fb (patch) | |
| tree | b9a31bcbf27e34f51fa413341a75fb62b134f7d3 /src/_cffi_src | |
| parent | 828bcf36d624c2de3ed30da9445741c8369d2b7f (diff) | |
| download | cryptography-be18c839856a9b2af4381fef70694d581b1262fb.tar.gz | |
Switch from check-manifest to check-sdist (#8846)
The latter will work with non-setuptools build backends.
Diffstat (limited to 'src/_cffi_src')
| -rw-r--r-- | src/_cffi_src/build_openssl.py | 2 | ||||
| -rw-r--r-- | src/_cffi_src/utils.py | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/_cffi_src/build_openssl.py b/src/_cffi_src/build_openssl.py index e199329db..019789441 100644 --- a/src/_cffi_src/build_openssl.py +++ b/src/_cffi_src/build_openssl.py @@ -54,7 +54,7 @@ ffi = build_ffi_for_binding( ) if __name__ == "__main__": - out_dir = os.getenv("OUT_DIR") + out_dir = os.environ["OUT_DIR"] module_name, source, source_extension, kwds = ffi._assigned_source c_file = os.path.join(out_dir, module_name + source_extension) if platform.python_implementation() == "PyPy": diff --git a/src/_cffi_src/utils.py b/src/_cffi_src/utils.py index 9eb782686..b5fba3709 100644 --- a/src/_cffi_src/utils.py +++ b/src/_cffi_src/utils.py @@ -7,6 +7,7 @@ from __future__ import annotations import os import platform import sys +import typing from cffi import FFI @@ -18,9 +19,9 @@ with open(os.path.join(base_src, "cryptography", "__about__.py")) as f: def build_ffi_for_binding( - module_name, - module_prefix, - modules, + module_name: str, + module_prefix: str, + modules: typing.List[str], ): """ Modules listed in ``modules`` should have the following attributes: @@ -54,9 +55,9 @@ def build_ffi_for_binding( def build_ffi( - module_name, - cdef_source, - verify_source, + module_name: str, + cdef_source: str, + verify_source: str, ): ffi = FFI() # Always add the CRYPTOGRAPHY_PACKAGE_VERSION to the shared object |
