feat(toolchains): Add armv7 linux platform to available toolchain platforms#1770
feat(toolchains): Add armv7 linux platform to available toolchain platforms#1770aignas merged 1 commit intobazel-contrib:mainfrom UebelAndre:arm
Conversation
|
I'm not sure what the intended behavior is here. I've compiled a python toolchain for armv7 which works totally fine in my environment but |
|
I think this is in the right direction. From what I remember, I think that In general I'd love it if we didn't have to keep an enumerated list of platforms around.
Can you explain this part a bit more? I was going to merge this PR, but this comment makes it sound like, while CI is passing, you are seeing errors elsewhere, something that CI isn't covering? I think when we added...I think it was the apple arm platform? Most of the issues of having a platform entry in there that didn't have a corresponding thing (url? repo?) were flushed out. Could always be more.
Nice! So that must mean you're manually defining py_runtime(), toolchain() etc to wire it into the rest of things? Does this mean you'd be interested in something like |
|
@UebelAndre , could you please paste the error you get without this PR? Maybe we are only fixing the symptom if we add the linux arm constant to the platforms, that said, I am fine to have the real fix in a followup PR if the the change may become too invasive. |
Without this patch I run into When I add the following to my WORKSPACE file python_repository(
name = "python_3_10_armv7-unknown-linux-gnu",
platform = "armv7-unknown-linux-gnu",
python_version = "3.10",
release_filename = "cpython-3.10-armv7-unknown-linux-gnueabihf-noopt.tar.gz",
sha256 = "4d5d44c0b25c6a1605be503e032be384e1472ba704536b7257459399e305be51",
strip_prefix = "python",
urls = ["https://python.tar.gz"],
) |
I was referring to the error here: #1770 (comment) |
No, I structured my artifact to be similar to https://github.com/indygreg/python-build-standalone, so I'm not really manually defining anything, just trying to use the existing plumbing like what I described on #1770 (comment) |
|
It looks like the |
|
I am inclined to just merge this as is as this improves the compatibility. Any objections @rickeylev? |
Does this mean no objections? 😅 |
|
Could you please rebase? I think the changelog would be weirdly formatted if we merge as is. |
@aignas done! |
No description provided.