-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
x.ps1 complains Python isn't installed, even though it is installed and working #117067
Labels
C-bug
Category: This is a bug.
O-windows
Operating system: Windows
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Comments
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Oct 23, 2023
albertlarsan68
added
O-windows
Operating system: Windows
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Oct 23, 2023
Hello, and thanks for the report! |
PR submitted as 117067 |
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Oct 23, 2023
Rollup merge of rust-lang#117069 - xobs:x.ps1-remove-windows-store-check, r=albertlarsan68 x.ps1: remove the check for Python from Windows Store When installing Python from the Windows Store, a copy of `python.exe` is installed inder the Microsoft directory in the user's local AppData directory. Currently, `x.ps1` checks for this file, because by default running `python.exe` opens a link to the Microsoft Store rather than running Python. Once the user installs Python, however, this contains a valid interpreter. Unfortuantely, `x.ps1` can't tell the difference between a legitimate Python install and the stub. Remove the check, as it makes it impossible to use the official version from Microsoft once it has been installed. This resolves rust-lang#117067
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
O-windows
Operating system: Windows
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
I tried this code:
I expected to see this happen: Rust would build
Instead, this happened: x.ps1 complained that python is not installed
Meta
rustc --version --verbose
:Backtrace
Additional Info
This works just fine if I comment out lines 20-24 of
x.ps1
:I am using Python as installed from the Microsoft Store, which as far as I know is the recommended way to run Python on Windows:
The text was updated successfully, but these errors were encountered: