mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-28 18:54:10 +00:00
Support no-build-isolation-package (#5894)
## Summary Resolves #5831 ## Test Plan `cargo test`
This commit is contained in:
parent
f7110e0a07
commit
acbd367ead
18 changed files with 468 additions and 16 deletions
|
|
@ -205,6 +205,7 @@ pub struct ResolverOptions {
|
|||
pub no_binary: Option<bool>,
|
||||
pub no_binary_package: Option<Vec<PackageName>>,
|
||||
pub no_build_isolation: Option<bool>,
|
||||
pub no_build_isolation_package: Option<Vec<PackageName>>,
|
||||
pub no_sources: Option<bool>,
|
||||
}
|
||||
|
||||
|
|
@ -350,6 +351,18 @@ pub struct ResolverInstallerOptions {
|
|||
"#
|
||||
)]
|
||||
pub no_build_isolation: Option<bool>,
|
||||
/// Disable isolation when building source distributions for a specific package.
|
||||
///
|
||||
/// Assumes that the packages' build dependencies specified by [PEP 518](https://peps.python.org/pep-0518/)
|
||||
/// are already installed.
|
||||
#[option(
|
||||
default = "[]",
|
||||
value_type = "Vec<PackageName>",
|
||||
example = r#"
|
||||
no-build-isolation-package = ["package1", "package2"]
|
||||
"#
|
||||
)]
|
||||
pub no_build_isolation_package: Option<Vec<PackageName>>,
|
||||
/// Limit candidate packages to those that were uploaded prior to the given date.
|
||||
///
|
||||
/// Accepts both [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html) timestamps (e.g.,
|
||||
|
|
@ -717,6 +730,18 @@ pub struct PipOptions {
|
|||
"#
|
||||
)]
|
||||
pub no_build_isolation: Option<bool>,
|
||||
/// Disable isolation when building source distributions for a specific package.
|
||||
///
|
||||
/// Assumes that the packages' build dependencies specified by [PEP 518](https://peps.python.org/pep-0518/)
|
||||
/// are already installed.
|
||||
#[option(
|
||||
default = "[]",
|
||||
value_type = "Vec<PackageName>",
|
||||
example = r#"
|
||||
no-build-isolation-package = ["package1", "package2"]
|
||||
"#
|
||||
)]
|
||||
pub no_build_isolation_package: Option<Vec<PackageName>>,
|
||||
/// Validate the Python environment, to detect packages with missing dependencies and other
|
||||
/// issues.
|
||||
#[option(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue