Don't create Python bytecode files during interpreter discovery (#7707)

This commit is contained in:
Aarni Koskela 2024-09-26 16:52:10 +03:00 committed by GitHub
parent c8357b7bf2
commit ed940300f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -616,7 +616,8 @@ impl InterpreterInfo {
tempdir.path().escape_for_python()
);
let output = Command::new(interpreter)
.arg("-I")
.arg("-I") // Isolated mode.
.arg("-B") // Don't write bytecode.
.arg("-c")
.arg(script)
.output()