Skip to content

Add cryptography build deps for s390x build nodes - #51

Merged
anfimovdm merged 1 commit into
masterfrom
al-s390x-cryptography-build-deps
Nov 2, 2026
Merged

anfimovdm merged 1 commit into
masterfrom
al-s390x-cryptography-build-deps

Conversation

@anfimovdm

Copy link
Copy Markdown
Contributor

Summary

Build node env setup on s390x fails at Install requirements into virtualenv with BackendUnavailable: Cannot import 'maturin'.

google-auth (pulled via immudb-py) depends on cryptography, which has no s390x wheel, so pip builds the sdist. On s390x requirements are installed with --no-build-isolation, so the build backend must already be present in the venv.

Changes

  • roles/separate_build_node/defaults/main/common.yml: add maturin>=1.9.4,<2 and cffi>=2.0.0 to build_node_s390x_build_requirements (system cffi is 1.14 and is visible via --system-site-packages)
  • roles/separate_build_node/defaults/main/dnf.yml: add libffi-devel to build_node_s390x_dnf_packages for building cffi

Testing

  • Re-run the separate build node playbook against s390x builders (albs-s3-builder-alma-08/09)

On s390x cryptography is built from sdist with --no-build-isolation, so its maturin backend and cffi>=2 must be preinstalled in the venv. Also install libffi-devel for building cffi.
@anfimovdm
anfimovdm merged commit e2d66fa into master Nov 2, 2026
2 of 3 checks passed
@anfimovdm
anfimovdm deleted the al-s390x-cryptography-build-deps branch November 2, 2026 18:41
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.

1 participant