Skip to content

Conversation

@freakboy3742
Copy link
Member

An initial pass at a modern Cryptography recipe.

Installs Cryptography 41.0.4.

Requires a patched version of setuptools_rust.

Currently fails building because the path containing the CC compiler alias isn't being exposed to the build environment. However, this includes all the configuration changes need to build manually outside this forge.

However, if you can get it to compile, it fails at runtime because it tries to load the rust library in its original file location, not the iOS Framework location.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@freakboy3742 freakboy3742 changed the title Initial attempt at a modern cryptography patch. cryptography Sep 29, 2023
@freakboy3742
Copy link
Member Author

It's now possible to build cryptography 47.0 using Maturin 0.10.2+ and the main branch of PyO3. Wheels for CPython 3.13 and 3.14 have been published to the BeeWare repo. As soon as a release of PyO3 that includes the required patches has been made, we'll be pushing a PR to Cryptography itself.

@mhsmith
Copy link
Member

mhsmith commented Jan 28, 2026

It's now possible to build cryptography 47.0

For the benefit of anyone who sees this page, I assume you mean it can be built with cibuildwheel, not with mobile-forge?

@freakboy3742
Copy link
Member Author

Correct - a normal python -m build build (either native, or via cibuildwheel) will work with the new tooling versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants