-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Added support for armv7l #106
Conversation
50dccd3
to
ccc5caf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't address ci or releases - do you plan on doing that?
Yes. Will work on it now :) |
ccc5caf
to
1793d3a
Compare
Thanks @Lauszus! FYI: a-scie/ptex#255 & a-scie/jump#258 Not sure if you want to toss s390x into the mix or not. I'm happy to follow behind and add support to science and Pex if you want to stay focused on armv7l. |
I think I'll just stick with armv7l for now. Can you allow the CI to run, so I can test my PR? |
349b216
to
2b68f13
Compare
109eafc
to
9a019dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. You may have to dig in a cross container to figure out where the arm
uname -m is coming from.
...aha. My bad reviewing your scie-jump change:
https://github.com/a-scie/jump/blob/60015e988144d8b4886ca17e5bb13c02c5fcd35a/jump/src/context.rs#L640-L650
So env::consts::ARCH
is not only used for the scie-jump binary suffix, it's also used for the {scie.platform}
and {scie.platform.arch}
lift manifest placeholders: https://github.com/a-scie/jump/blob/main/docs/packaging.md#advanced-placeholders
So using a custom ARCH for armv7l fights a bit of an uphill battle. That should be enough info though to help you find all the spots (the one I pointed out above may be the only one, but I'm not positive (from my phone)).
Argh I should have grepped for |
Here it is: a-scie/jump#260 |
Alrighty, thanks again @Lauszus. Released: https://github.com/a-scie/jump/releases/tag/v1.4.1 |
Thanks. I've already updated my pex PR: pex-tool/pex#2620 Can you retrigger the CI for this PR? |
@@ -1,5 +1,9 @@ | |||
# Release Notes | |||
|
|||
## 0.9.0 | |||
|
|||
This release adds support for Linux ARM (armv7l and armv8l 32 bit mode). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to scie jump, if you check all the RELEASE.md prep boxes, I can get a release out. You're missing a corresponding version bump for the package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super. I'll fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, not so easy. There will need to be some test mods for armv7l. I'll check back in on your progress in the morning Nevada, US time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the following warning:
nox > mypy --python-version 3.12 science tests test-support noxfile.py docs
science/commands/complete.py:19: error: Incompatible types in assignment (expression has type "Process | None", variable has type "Process") [assignment]
Found 1 error in 1 file (checked 45 source files)
nox > Command mypy --python-version 3.12 science tests test-support noxfile.py docs failed with exit code 1
nox > Session check-/home/lauszus/Github/lift/.nox/PBS/20241206/3.12.8/install_only_stripped/python/bin/python3.12 failed.
nox > Ran multiple sessions:
nox > * fmt-/home/lauszus/Github/lift/.nox/PBS/20241206/3.12.8/install_only_stripped/python/bin/python3.12: success
nox > * lint-/home/lauszus/Github/lift/.nox/PBS/20241206/3.12.8/install_only_stripped/python/bin/python3.12: success
nox > * check-/home/lauszus/Github/lift/.nox/PBS/20241206/3.12.8/install_only_stripped/python/bin/python3.12: failed
But I ignored it, as I haven't touched that file or made any changes to the psutil
dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, not so easy. There will need to be some test mods for armv7l. I'll check back in on your progress in the morning Nevada, US time.
Super. I'll try to fix the pytest tests. Seems like it is running it for armv7l even though it is not available.
52e4cf2
to
f8aa7b1
Compare
@@ -30,6 +31,10 @@ def test_installer_help(installer: list): | |||
assert long_help in result.stdout, f"Expected '{long_help}' in tool output" | |||
|
|||
|
|||
@pytest.mark.skipif( | |||
Platform.current() == Platform.Linux_armv7l, | |||
reason="TODO: Remove once 0.9.0 is released", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to skip these two tests for now until 0.9.0 is released, as it tried to fetch the armv7l
, but that is obviously not possible since I am adding it in this PR.
f8aa7b1
to
37a7ff7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working through this one @Lauszus.
You're welcome :) |
All right, the doc site was a little bumpy (an issue I caused with #105), but that's fixed up: |
No description provided.