Skip to content

Conversation

@davidhewitt
Copy link
Member

@davidhewitt davidhewitt commented Oct 6, 2025

Fixes #2692 (try 2)

This PR proposes removing the checks in windows_interpreter_no_build into PythonInterpreter::check_executable, making that the single way to resolve if an interpreter has all the information to build.

We need to run that step anyway, so integrating the windows checks into it should make things more efficient.

At the same time, I also made check_executable aware of architecture when falling back to py to search for an interpreter.

Tests need moving around, I will push tomorrow.

@davidhewitt
Copy link
Member Author

cc @tonybaloney I tested this pretty extensively on arm hardware with -f, -i 3.13 etc and got the results which I'd expect in all cases 🎉

@davidhewitt davidhewitt marked this pull request as ready for review October 7, 2025 10:07
@tonybaloney
Copy link
Contributor

+1 This removes a lot of duplicate logic to find and filter interpreters for Windows.

@davidhewitt
Copy link
Member Author

@messense @konstin given the issues with Windows platform checking in 1.9.5 (sorry) I'm thinking it would be good to get this merged and released as 1.9.6 fairly promptly. If either you have availability for a quick review, would be greatly appreciated.

@messense
Copy link
Member

messense commented Oct 7, 2025

Feel free to release 1.9.6.

@messense messense merged commit f18acbf into PyO3:main Oct 7, 2025
43 checks passed
@davidhewitt
Copy link
Member Author

Will do, many thanks!

@davidhewitt davidhewitt mentioned this pull request Oct 7, 2025
davidhewitt added a commit that referenced this pull request Oct 7, 2025
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Oct 11, 2025
https://build.opensuse.org/request/show/1310403
by user mia + dimstar_suse
- Update to 1.9.6
  * Trim platform details on Windows detection
    gh#PyO3/maturin#2755
  * Bump actions/setup-python from 5 to 6
    gh#PyO3/maturin#2748
  * Bump actions/setup-node from 4 to 5
    gh#PyO3/maturin#2749
  * make PythonInterpreter::check_executable aware of windows arch
    gh#PyO3/maturin#2758
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.

Invalid interpreter used on windows-11-arm runners

3 participants