Skip to content

Commit df8c358

Browse files
fix args
1 parent 6921a4a commit df8c358

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

install_optimized.sh

100644100755
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ fi
2020

2121
if [[ "$arch" != "x86_64" && "$arch" != "amd64" ]]; then
2222
echo "[WARN] Non-x86_64 architecture ($arch) detected; skipping native flags. Running portable build."
23-
python -m pip install "$@"
23+
if [[ "$#" -eq 0 ]]; then
24+
python -m pip install .
25+
else
26+
python -m pip install "$@"
27+
fi
2428
exit 0
2529
fi
2630

@@ -36,4 +40,8 @@ export CMAKE_ARGS="${CMAKE_ARGS:-} ${cmake_args}"
3640

3741
echo "[INFO] Using CMAKE_ARGS=${CMAKE_ARGS}"
3842
echo "[INFO] Invoking pip install with optimized flags..."
39-
python -m pip install "$@"
43+
if [[ "$#" -eq 0 ]]; then
44+
python -m pip install .
45+
else
46+
python -m pip install "$@"
47+
fi

0 commit comments

Comments
 (0)