Use optimized versions of managed Python on Linux (#4775)

Fix #4774.

## Summary

Change the python interpreter for linux installed with `uv python` to an
optimized one.

## Test Plan

I ran the following command on Linux (glibc) to confirm that an
optimized (not debug built) Python is installed.

```bash
# install python
uv python install 3.12.3

# check build type
uv run python -c "import sysconfig;print(sysconfig.get_config_var('Py_DEBUG'))"
0
```
This commit is contained in:
Di-Is 2024-07-04 00:58:04 +09:00 committed by GitHub
parent d858fb8901
commit dc4ff84443
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 658 additions and 661 deletions

File diff suppressed because it is too large Load diff

View file

@ -36,9 +36,6 @@ FLAVOR_PREFERENCES = [
"shared-noopt",
"shared-noopt",
"static-noopt",
"gnu-pgo+lto",
"gnu-lto",
"gnu-pgo",
"pgo+lto",
"lto",
"pgo",

File diff suppressed because it is too large Load diff