File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ readme = "README.md"
1818
1919requires-python = " >=3.10"
2020dependencies = [
21+ ' setuptools==81.0.0' ,
2122' protobuf==4.23.3' ,
2223' numpy<2.0.0' ,
2324' onnx' ,
Original file line number Diff line number Diff line change @@ -23,8 +23,13 @@ if [ -d "${GAP9_SDK_INSTALL_DIR}/.git" ]; then
2323 cd " ${GAP9_SDK_INSTALL_DIR} " || exit 1
2424 git remote set-url origin " ${GAP_SDK_URL} " || true
2525else
26- echo " Cloning GAP9 SDK..."
27- GIT_LFS_SKIP_SMUDGE=1 git clone " ${GAP_SDK_URL} " " ${GAP9_SDK_INSTALL_DIR} "
26+ echo " Directory exists but .git folder is missing. Reinitializing git repository..."
27+ cd " ${GAP9_SDK_INSTALL_DIR} " || exit 1
28+ git init
29+ git remote add origin " ${GAP_SDK_URL} "
30+ git fetch --all --tags || true
31+ git reset --soft " ${GAP9_SDK_COMMIT_HASH} "
32+ git add .
2833fi
2934
3035cd " ${GAP9_SDK_INSTALL_DIR} " || exit 1
@@ -33,6 +38,7 @@ git fetch --all --tags || true
3338git stash || true
3439GIT_LFS_SKIP_SMUDGE=1 git checkout " ${GAP9_SDK_COMMIT_HASH} "
3540git submodule update --init --recursive
41+ git lfs pull --include=" *.so" || true
3642
3743# Platform specific patch
3844ARCH=$( dpkg --print-architecture 2> /dev/null || true)
You can’t perform that action at this time.
0 commit comments