mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00

## Summary This PR migrates our virtualenv creation from a setup that assumes prior knowledge of the correct paths, to a technique borrowed from `virtualenv` whereby we use `sysconfig` and `distutils` to determine the paths. The general trick is to grab the expected paths with `sysconfig`, then make them all relative, then make them absolute for a given directory. Closes #2095. Closes #2153.
45 lines
1.2 KiB
TOML
45 lines
1.2 KiB
TOML
[package]
|
|
name = "uv-virtualenv"
|
|
version = "0.0.4"
|
|
publish = false
|
|
description = "virtualenv creation implemented in rust"
|
|
keywords = ["virtualenv", "venv", "python"]
|
|
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
homepage = { workspace = true }
|
|
documentation = { workspace = true }
|
|
repository = { workspace = true }
|
|
authors = { workspace = true }
|
|
license = { workspace = true }
|
|
|
|
[[bin]]
|
|
name = "uv-virtualenv"
|
|
required-features = ["cli"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
platform-host = { path = "../platform-host" }
|
|
pypi-types = { path = "../pypi-types" }
|
|
uv-cache = { path = "../uv-cache" }
|
|
uv-fs = { path = "../uv-fs" }
|
|
uv-interpreter = { path = "../uv-interpreter" }
|
|
|
|
anstream = { workspace = true }
|
|
cachedir = { workspace = true }
|
|
clap = { workspace = true, features = ["derive"], optional = true }
|
|
directories = { workspace = true }
|
|
fs-err = { workspace = true }
|
|
pathdiff = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true, optional = true }
|
|
which = { workspace = true }
|
|
|
|
[features]
|
|
cli = ["clap", "tracing-subscriber"]
|