Skip to content

cryptography modules not built due to PEP 517 #170

@jayvdb

Description

@jayvdb

cryptography includes three built libraries _constant_time.abi3.so, _openssl.abi3.so and _padding.abi3.so.

They are not being built by default.

I suspect it is because of the following in the logs

  Building wheel for cryptography (PEP 517): started
  Building wheel for cryptography (PEP 517): finished with status 'done'

I guess the distutils hackery doesnt work with PEP 517 packages. I notice bcrypt also has the same in the logs and its bcrypt/_bcrypt is missing, not even at top level _bcrypt.

  Building wheel for bcrypt (PEP 517): started
  Building wheel for bcrypt (PEP 517): finished with status 'done'

Worth noting that this means likely requests[security] is currently not secure, and I am seeing a few related errors in the requests test suite, at least one I recognise as indicative of insecure requests (TestRequests.test_https_warnings), but not sure if the two are linked.

Using PIP_USE_PEP517=false globally isnt a magic solution , as with crypography and bcrypt it causes:

ERROR: Disabling PEP 517 processing is invalid: project specifies a build backend of setuptools.build_meta in pyproject.toml

extra_args = "--no-user-cfg"

Doesnt do anything (c.f. its setup.py)

requirement -e git+https://github.com/pyca/cryptography#egg=cryptography didnt work:
error: option --home not recognized

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityFor compatibility issues with 3rd party Python projects

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions