Skip to content

Commit 77a1113

Browse files
committed
fix: eval pixi shell-hook output in setup-python.sh
The script was previously executing the output of `pixi shell-hook` directly, which could cause issues. Now it properly evaluates the output to ensure correct shell environment setup.
1 parent 02b91e8 commit 77a1113

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.cspell.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"cuda",
88
"cython",
99
"dmypy",
10+
"dsanders",
1011
"elif",
1112
"envrc",
1213
"getattr",
@@ -36,14 +37,15 @@
3637
"pyrightconfig",
3738
"pytest",
3839
"pytype",
40+
"pyvenv",
3941
"pyvista",
4042
"scrapy",
4143
"sdist",
42-
"stefanzweifel",
4344
"strftime",
4445
"trimesh",
4546
"ubelt",
4647
"venv",
48+
"virtualenv",
4749
"xdist"
4850
],
4951
"ignorePaths": [

template/.config/copier/mise/scripts/setup-python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ date "+%s" > "${DEBOUNCE_FILE}"
2121
if [[ -f "pixi.lock" ]]; then
2222
args=()
2323
if [[ -t 2 ]]; then args+=(--color=always); fi
24-
"$(pixi shell-hook "${args[@]}")"
24+
eval "$(pixi shell-hook "${args[@]}")"
2525
fi
2626

2727
if [[ -f "uv.lock" ]]; then

0 commit comments

Comments
 (0)