Skip to content

Commit

Permalink
fix: activation script
Browse files Browse the repository at this point in the history
Otherwise tasks like `run-all-examples` would not work on macOS or windows
  • Loading branch information
Hofer-Julian committed Sep 9, 2024
1 parent b1d4ba2 commit 609f025
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bump = "tbump --only-patch $RELEASE_VERSION"
install = "cargo install --path . --locked"
pypi-proxy = "python ./tests/pypi_proxy.py"
release = "python scripts/release.py"
run-all-examples = { cmd = "python ./tests/run_all_examples.py --pixi-exec .pixi/target/release/pixi", depends-on = [
run-all-examples = { cmd = "python ./tests/run_all_examples.py --pixi-exec $CARGO_TARGET_DIR/pixi", depends-on = [
"build",
] }
test = "cargo test"
Expand Down Expand Up @@ -69,7 +69,11 @@ compilers = ">=1.6.0"
make = ">=4.3,<5"
mold = ">=2.33.0,<3.0"
[feature.build.target.linux-64.activation]
scripts = ["scripts/activate_linux.sh"]
scripts = ["scripts/activate.sh"]
[feature.build.target.osx-arm64.activation]
scripts = ["scripts/activate.sh"]
[feature.build.target.win-64.activation]
scripts = ["scripts/activate.bat"]

[feature.docs.dependencies]
cairosvg = "2.7.1.*"
Expand Down
2 changes: 2 additions & 0 deletions scripts/activate.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
set CARGO_TARGET_DIR=.pixi\target
File renamed without changes.

0 comments on commit 609f025

Please sign in to comment.