uv/crates/uv-python/src
Hood Chatham f9d3f24728
Add Pyodide support (#12731)
This includes some initial work on adding Pyodide support (issue
#12729). It is enough to get
```
uv pip compile -p /path/to/pyodide --extra-index-url file:/path/to/simple-index
```
to work which should already be quite useful.

## Test Plan

* added a unit test for `pyodide_platform`
* integration tested manually with:
```
cargo run pip install \
-p /home/rchatham/Documents/programming/tmp/pyodide-venv-test/.pyodide-xbuildenv-0.29.3/0.27.4/xbuildenv/pyodide-root/dist/python \
--extra-index-url file:/home/rchatham/Documents/programming/tmp/pyodide-venv-test/.pyodide-xbuildenv-0.29.3/0.27.4/xbuildenv/pyodide-root/package_index \
--index-strategy unsafe-best-match --target blah --no-build \
numpy pydantic
```

---------

Co-authored-by: konsti <konstin@mailbox.org>
Co-authored-by: Zanie Blue <contact@zanie.dev>
2025-06-03 12:01:26 -05:00
..
sysconfig feat: add dynamically generated sysconfig replacement mappings (#13441) 2025-06-02 10:58:30 -05:00
cpuinfo.rs Fix hard and soft float libc detection for managed Python distributions on ARM (#8498) 2024-10-29 23:46:21 +00:00
discovery.rs allow running non-default Python interpreters directly via uvx (#13583) 2025-05-30 09:12:39 -07:00
downloads.rs Update Rust crate tempfile to v3.20.0 (#13776) 2025-06-02 07:47:08 +00:00
environment.rs Bump MSRV to 1.85 and Edition 2024 (#13516) 2025-05-18 19:38:43 -04:00
implementation.rs Prefer Python executable names that match the request over default names (#9066) 2024-11-13 10:00:23 -06:00
installation.rs Implement ordering for Python architectures to prefer native installations (#13709) 2025-05-29 19:06:33 +00:00
interpreter.rs Add Pyodide support (#12731) 2025-06-03 12:01:26 -05:00
lib.rs Bump MSRV to 1.85 and Edition 2024 (#13516) 2025-05-18 19:38:43 -04:00
libc.rs make the error message clearer when running distroless containers (#13549) 2025-05-29 10:29:01 -07:00
macos_dylib.rs Install and remove managed Python to and from the Windows Registry (PEP 514) (#10634) 2025-01-23 14:13:41 +00:00
managed.rs make the error message clearer when running distroless containers (#13549) 2025-05-29 10:29:01 -07:00
microsoft_store.rs Bump MSRV to 1.85 and Edition 2024 (#13516) 2025-05-18 19:38:43 -04:00
platform.rs Add Pyodide support (#12731) 2025-06-03 12:01:26 -05:00
pointer_size.rs Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
prefix.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
python_version.rs Report Python versions in `pyvenv.cfg` version mismatch (#13027) 2025-04-25 18:06:46 +00:00
target.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
version_files.rs Ignore arbitrary Python requests in version files (#12909) 2025-04-29 16:37:00 -05:00
virtualenv.rs Report Python versions in `pyvenv.cfg` version mismatch (#13027) 2025-04-25 18:06:46 +00:00
windows_registry.rs Bump MSRV to 1.85 and Edition 2024 (#13516) 2025-05-18 19:38:43 -04:00