← Back to issue list

Python plugins install wheels for the host architecture, not the target architecture.

View original Github issue

Metadata

Project
craft-parts
Number
#974
Type
issue
State
open
Author
lengau
Labels
Created
2025-01-15 18:18:38+00:00
Updated
2025-03-11 14:28:20+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description All of the Python plugins create their virtual environments for the host architecture. While this isn't a problem if all packages are python-native, including a package with binary components will fail when doing a cross-compile. ### To Reproduce Try cross-compiling a snap with the parts specified below. It will succeed, but the snap won't have the correct cryptography package. ### part yaml ```shell parts: my-part: plugin: python source: . python-packages: - cryptography ``` ### Relevant log output ```shell n/a ```

Evaluation history

No evaluation history available.