-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
crypthography cross build produces host's rust library #205807
Copy link
Copy link
Closed
Labels
0.kind: bugSomething is brokenSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on6.topic: rustGeneral-purpose programming language emphasizing performance, type safety, and concurrency.General-purpose programming language emphasizing performance, type safety, and concurrency.
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on6.topic: rustGeneral-purpose programming language emphasizing performance, type safety, and concurrency.General-purpose programming language emphasizing performance, type safety, and concurrency.
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
By attempting to cross-compile python cryptography I get build but rust bindings are build for host architecture.
Steps To Reproduce
Steps to reproduce the behavior:
nix build .#legacyPackages.x86_64-linux.pkgsCross.aarch64-multiplatform.python3Packages.cryptographyfile result/lib/python3.10/site-packages/cryptography/hazmat/bindings/_rust.abi3.sogivesx86-64file result/lib/python3.10/site-packages/cryptography/hazmat/bindings/_openssl.abi3.sogivesaarch64Expected behavior
The rust should be cross compiled as well.
Additional context
Add any other context about the problem here.
I tried to look into it and discovered this PyO3/setuptools-rust#294 but nothing more.
Notify maintainers
@SuperSandro2000
Metadata