Skip to content

Fix pyyaml cross compilation#68

Merged
jkloetzke merged 3 commits intoBobBuildTool:masterfrom
jkloetzke:fix-pyyaml-cross
Mar 12, 2025
Merged

Fix pyyaml cross compilation#68
jkloetzke merged 3 commits intoBobBuildTool:masterfrom
jkloetzke:fix-pyyaml-cross

Conversation

@jkloetzke
Copy link
Member

Fixes the AArch64 build failure in #57...

@jkloetzke
Copy link
Member Author

@sixtyfourktec Could you have a look if it doesn't break anything?

@sixtyfourktec
Copy link
Contributor

@sixtyfourktec Could you have a look if it doesn't break anything?

My dependencies still compile. So looks good.

Needed to compile most Python C extensions.
It turns out that using pip does not bode well with cross compilation.
The reason is that pip will clean the PYTHONPATH which will prevent the
respective sysconfig module to be found. A typical error message during
pip install will look like the following:

  ModuleNotFoundError: No module named '_sysconfigdata__linux_aarch64-linux-gnu'

By using the setuptools method, everything works as expected. While at
it, also add libyaml so that the module benefits of the C parser
speedup.
@rhubert rhubert mentioned this pull request Mar 12, 2025
@jkloetzke jkloetzke merged commit 6c2279e into BobBuildTool:master Mar 12, 2025
1 check passed
@jkloetzke jkloetzke deleted the fix-pyyaml-cross branch March 12, 2025 19:31
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