Skip to content

Commit ff4d281

Browse files
committed
Using python3 in build_native.sh (#814)
So that users on say Ubuntu 20.04 can use the script, because to the `python` is still 2.7: ``` $ cat /etc/issue; python --version Ubuntu 20.04.5 LTS \n \l Python 2.7.18 ```
1 parent a9aec29 commit ff4d281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build_native.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fi
7474
popd
7575

7676
# CMake commands
77-
cmake -S . -B ./cmake-out -DCMAKE_PREFIX_PATH=`python -c 'import torch;print(torch.utils.cmake_prefix_path)'` -G Ninja
77+
cmake -S . -B ./cmake-out -DCMAKE_PREFIX_PATH=`python3 -c 'import torch;print(torch.utils.cmake_prefix_path)'` -G Ninja
7878
cmake --build ./cmake-out --target "${TARGET}"_run
7979

8080
printf "Build finished. Please run: \n./cmake-out/${TARGET}_run model.<pte|so> -z tokenizer.model -l <llama version (2 or 3)> -i <prompt>\n"

0 commit comments

Comments
 (0)