diff --git a/setup.cfg b/setup.cfg index f9710764d..d96bb2d4f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,7 +43,6 @@ zip_safe = False package_dir = =src packages = find: -ext_package = cryptography.hazmat.bindings # `install_requires` must be kept in sync with `pyproject.toml` install_requires = cffi >=1.12 diff --git a/setup.py b/setup.py index 946bb0f92..320994e69 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ try: ], rust_extensions=[ RustExtension( - "_rust", + "cryptography.hazmat.bindings._rust", "src/rust/Cargo.toml", py_limited_api=True, # Enable abi3 mode if we're not using PyPy. diff --git a/src/_cffi_src/build_openssl.py b/src/_cffi_src/build_openssl.py index c5ab3cb3c..84637f090 100644 --- a/src/_cffi_src/build_openssl.py +++ b/src/_cffi_src/build_openssl.py @@ -70,7 +70,7 @@ def _extra_compile_args(platform): ffi = build_ffi_for_binding( - module_name="_openssl", + module_name="cryptography.hazmat.bindings._openssl", module_prefix="_cffi_src.openssl.", modules=[ # This goes first so we can define some cryptography-wide symbols.