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

Change error value detection for glibc #3487

Merged
merged 1 commit into from
May 9, 2024
Merged

Change error value detection for glibc #3487

merged 1 commit into from
May 9, 2024

Conversation

charliermarsh
Copy link
Member

Summary

See: #3486. This just fixes the error message, not the underlying bug.

@@ -469,7 +469,7 @@ def get_operating_system_and_architecture():
"major": musl_version[0],
"minor": musl_version[1],
}
elif glibc_version:
elif glibc_version != (-1, -1):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type of _get_glibc_version is tuple[int, int], not an optional.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I don't want to change _get_glibc_version since it's vendored.)

@ofek
Copy link
Contributor

ofek commented May 9, 2024

I don't know if this is helpful to you at all but in Hatch this is what we use to determine MUSL: https://github.com/pypa/hatch/blob/hatch-v1.10.0/src/hatch/python/resolve.py#L152

@charliermarsh charliermarsh enabled auto-merge (squash) May 9, 2024 15:22
@charliermarsh charliermarsh merged commit f342d39 into main May 9, 2024
43 checks passed
@charliermarsh charliermarsh deleted the charlie/lib branch May 9, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Messaging when something goes wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants