Skip to content

Commit

Permalink
Add editable to conda build params
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Dec 10, 2024
1 parent fbf741b commit 4c89a9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 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,9 @@ pub struct CondaBuildParams {
///
/// The directory may not yet exist.
pub work_directory: PathBuf,

/// The path to the editable package
pub editable: Option<PathBuf>,
}

/// Identifier of an output.
Expand Down
2 changes: 2 additions & 0 deletions src/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ impl BuildContext {
channel_configuration: ChannelConfiguration {
base_url: self.channel_config.channel_alias.clone(),
},
// FIXME
editable: Some(PathBuf::from_str("/var/home/julian/Projekte/github.com/prefix-dev/pixi-1/pytest-temp/test_editable_pyproject0/editable-pyproject").unwrap()),
outputs: Some(vec![CondaOutputIdentifier {
name: Some(source_spec.package_record.name.as_normalized().to_string()),
version: Some(source_spec.package_record.version.version().to_string()),
Expand Down
2 changes: 2 additions & 0 deletions src/cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ pub async fn execute(args: Args) -> miette::Result<()> {
base_url: channel_config.channel_alias,
},
outputs: None,
// FIXME
editable: None,
work_directory: work_dir.path().to_path_buf(),
variant_configuration: Some(Default::default()),
},
Expand Down

0 comments on commit 4c89a9a

Please sign in to comment.