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

feat(musl): add musl toolchain #2402

Merged
merged 18 commits into from
Nov 18, 2024
Merged

Conversation

aignas
Copy link
Collaborator

@aignas aignas commented Nov 13, 2024

With this and the previously landed #2406 users can use this in sdist
or whl-only setups alike. The PR itself is very simple and just adds
musl toolchains.

Whilst at it also move the WhlLibc flag out of the pypi namespace
since it is also used for toolchain matching now.

Fixes #1211

github-merge-queue bot pushed a commit that referenced this pull request Nov 18, 2024
…2406)

Before this PR we would shell out to `uname` on UNIX systems to get the
`arch`
of the toolchain - on Windows we would not need to do it because there
used to
be only a single Windows platform. With this change we can correctly
support
the resolution of the python interpreter on various platforms and I have
also
added an env variable to customize the selection, so that users can use
`musl`
or a `freethreaded` interpreter if they wish.

As part of this change, I have restricted visibility of the config
settings
used in the toolchain alias repo so that we are creating fewer targets.
This is
a very good time to do this before `1.0.0`.

Fixes #2145
Work towards #2276
Work towards #2386
Work towards #1211 to unblock #2402
Work towards #1361

---------

Co-authored-by: Richard Levasseur <[email protected]>
@aignas aignas marked this pull request as ready for review November 18, 2024 03:10
python/private/flags.bzl Outdated Show resolved Hide resolved
@aignas aignas added this pull request to the merge queue Nov 18, 2024
Merged via the queue into bazelbuild:main with commit e7c306d Nov 18, 2024
4 checks passed
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.

Downloaded python toolchain has shared library dependencies
2 participants