Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 7f7b7ba

Browse files
committed
fix defintion
1 parent 12b57c6 commit 7f7b7ba

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

torchchat/utils/scripts/build_native.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,9 @@ if [ -z "${TORCHCHAT_ROOT}" ]; then
5353
# Get the absolute path of the current script
5454
SCRIPT_PATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
5555
# Get the absolute path of the parent directory
56-
TORCHCHAT_ROOT="$(dirname "$SCRIPT_PATH")"
57-
source "$TORCHCHAT_ROOT/scripts/install_utils.sh"
58-
else
59-
source "$TORCHCHAT_ROOT/torchchat/utils/scripts/install_utils.sh"
60-
fi
56+
TORCHCHAT_ROOT="$(dirname "$(dirname "$(dirname "$SCRIPT_PATH")")")"
57+
58+
source "$TORCHCHAT_ROOT/torchchat/utils/scripts/install_utils.sh"
6159

6260
if [ -z "${ET_BUILD_DIR}" ]; then
6361
ET_BUILD_DIR="et-build"

torchchat/utils/scripts/install_utils.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,9 @@ if [ -z "$TORCHCHAT_ROOT" ]; then
1313
fi
1414

1515
install_pip_dependencies() {
16-
echo "Intalling common pip packages"
16+
echo "Installing common pip packages"
1717
pip3 install wheel "cmake>=3.19" ninja zstd
1818
pushd ${TORCHCHAT_ROOT}
19-
echo ${TORCHCHAT_ROOT}
20-
ls
21-
22-
ls install
2319
pip3 install -r install/requirements.txt
2420
popd
2521
}

0 commit comments

Comments
 (0)