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

Combine sys_platform and platform_system in marker algebra #9344

Open
wants to merge 1 commit into
base: charlie/lower-ii
Choose a base branch
from

Conversation

charliermarsh
Copy link
Member

Summary

This PR adds a representation to the marker algebra to capture "known pairs" of sys_platform and platform_system values.

For example, we want to be able to detect that sys_platform == 'win32' and platform_system == 'Darwin' are disjoint.

There is some risk here, in that if there are platforms for which, e.g., sys_platform == 'win32 but platform_system is not Windows, we'll get things wrong. I'm trying to weigh whether that's a real risk.

In theory, we could maybe also include os.name here?

Closes #7760.
Closes #9275.

@charliermarsh charliermarsh changed the base branch from main to charlie/lower-ii November 22, 2024 02:28
@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality performance Potential performance improvement labels Nov 22, 2024
@charliermarsh charliermarsh force-pushed the charlie/lower-iii branch 3 times, most recently from 2b8d450 to cfc5550 Compare November 22, 2024 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality performance Potential performance improvement
Projects
None yet
1 participant