Skip to content

Commit

Permalink
feat: support editable installs for pixi build
Browse files Browse the repository at this point in the history
- `pixi build` will always send `editable=false`
- `pixi install` will send `editable=true` for the `python-build-backend`
  • Loading branch information
Hofer-Julian committed Dec 6, 2024
1 parent 798763b commit 4167992
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/pixi_build_types/src/procedures/conda_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ pub struct CondaBuildParams {
///
/// The directory may not yet exist.
pub work_directory: PathBuf,

/// Install the package in editable mode
/// This is supported by many languages without an explicit compile step like Python
/// When this parameter is set, changes in the source code will be reflected
/// without a rebuild
pub editable: bool,
}

/// Identifier of an output.
Expand Down
1 change: 1 addition & 0 deletions src/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ impl BuildContext {
.key(),
),
variant_configuration: self.variant_config.clone(),
editable: todo!(),
},
build_reporter.as_conda_build_reporter(),
)
Expand Down
1 change: 1 addition & 0 deletions src/cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ pub async fn execute(args: Args) -> miette::Result<()> {
outputs: None,
work_directory: work_dir.path().to_path_buf(),
variant_configuration: Some(Default::default()),
editable: false,
},
progress.clone(),
)
Expand Down

0 comments on commit 4167992

Please sign in to comment.