-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Expose LTS_CPU in a public API #19109
Comments
Yes, I think we can add that |
Ok so i believe i found a couple of issues while working on that
Reproduction: > pip install polars-lts-cpu --force-reinstall --quiet
> cat .venv2/lib/python3.11/site-packages/polars/_cpu_check.py | grep "LTS_CPU = "
_POLARS_LTS_CPU = False The problem is that the sed command replaces the "old" name of the variable polars/.github/workflows/release-python.yml Line 178 in a0ec630
> ls .venv/lib/python3.11/site-packages/polars/_cpu_*
.venv2/lib/python3.11/site-packages/polars/_cpu_check.py .venv2/lib/python3.11/site-packages/polars/_cpu_check.py'' @ritchie46 - I think i'll create a PR to fix issue 1, and then expose the variable in another PR - sounds alright? |
I think we can remove the LTS CPU check bypass. The comment justifying it is:
This was initially done as a conservatism when the CPU check was introduced. However, I messed up and the code actually replaces the wrong variable as you noticed, so we were never conservative in the first place, without any issues. But now that it's been in Polars for quite a while I think we can safely say it works on So at this point I would suggest making a PR that does set |
@orlp sounds good - i'll do that |
@ritchie46 any chance you can build macos wheels so i can verify that the github actions change works? (there was a miss there originally so i would like to make sure all works now) |
You can test that on your fork. |
Description
I think we should enable users to check if the installed version of polars is LTS_CPU or not programmatically.
I suggest adding this information to
pl.show_versions()
Would be happy to implement this if maintainers agree to the idea
The text was updated successfully, but these errors were encountered: