Skip to content

Commit

Permalink
got it building
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Jul 30, 2024
1 parent a06fa36 commit e0e4f5b
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
[workspace]
members = ["crates/*"]
resolver = "2"

[workspace.package]
edition = "2021"

[workspace.dependencies]
clap = "4.5.11"
pixi_manifest = { git = "https://github.com/prefix-dev/pixi", branch="main" }
pixi_consts = { git = "https://github.com/prefix-dev/pixi", branch="main" }
rattler-build = { git = "https://github.com/tdejager/rattler-build", branch = "feat/optional-recipe-generation", default-features = false }
10 changes: 10 additions & 0 deletions crates/pixi-build-python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "pixi-build-python"
version = "0.1.0"
edition.workspace = true

[dependencies]
pixi_manifest = { workspace = true }
pixi_consts = { workspace = true }
rattler-build = { workspace = true }
clap = { workspace = true, features = ["derive", "env"] }
1 change: 1 addition & 0 deletions crates/pixi-build-python/src/consts.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub use pixi_consts::consts::*;
21 changes: 21 additions & 0 deletions crates/pixi-build-python/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
mod consts;

use std::path::PathBuf;

use clap::Parser;

#[allow(missing_docs)]
#[derive(Parser)]
#[clap(version)]
pub struct App {
/// The path to the manifest file
#[clap(env, long, env = "PIXI_PROJECT_MANIFEST", default_value = consts::PROJECT_MANIFEST)]
manifest_path: PathBuf,
}

fn main() {
let args = App::parse();

// Load the manifest
eprintln!("Looking for manifest at {:?}", args.manifest_path);
}

0 comments on commit e0e4f5b

Please sign in to comment.