Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config options for build and python versions. Add configs for windows and linux arm64. #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ivorforce
Copy link
Contributor

@Ivorforce Ivorforce commented Oct 28, 2024

This is quite a big change. Review required. I haven't tested running this with different python versions yet, will do this later.

Note (I think) the "python" option available previously didn't do anything, as the environment variable was overridden anyway.

@Ivorforce Ivorforce force-pushed the choose-python-scons branch from 5f1183a to d0fbdcf Compare October 28, 2024 14:43
@Ivorforce
Copy link
Contributor Author

Ivorforce commented Oct 28, 2024

I tried adding windows and linux arm64 builds, but they are failing because of binary incompatibility:

strip: Unable to recognise the format of the input file `/home/runner/work/godot-python-extension/godot-python-extension/bin/linux-arm64-20231002-3.12.0/libpython3.12.so.1.0'

That's a ToDo for the future. Arm runners are currently an Enterprise feature.

The strip problem may be solvable with more infrastructure:

https://github.com/electron/electron/blob/main/script/strip-binaries.py#L16-L25

But then, we also run python -m sysconfig, and that may never work with an arm binary on x86_64.

@Ivorforce Ivorforce force-pushed the choose-python-scons branch 2 times, most recently from b247007 to 13e116a Compare October 28, 2024 14:58
@maiself maiself added enhancement New feature or request build related to the build system labels Oct 29, 2024
…ell as python version. Move build files. Unlock windows and linux build configs for arm64.
@Ivorforce Ivorforce force-pushed the choose-python-scons branch from 13e116a to bc7f14a Compare October 29, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build related to the build system enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants