Skip to content

Commit bad7fc4

Browse files
committed
cleanup install scripts
1 parent 071619b commit bad7fc4

File tree

4 files changed

+0
-41
lines changed

4 files changed

+0
-41
lines changed

.ci/scripts/setup-linux.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ fi
2020

2121
# As Linux job is running inside a Docker container, all of its dependencies
2222
# have already been installed
23-
install_flatc_from_source
2423
install_executorch
2524
build_executorch_runner "${BUILD_TOOL}"

.ci/scripts/setup-macos.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,5 @@ if [[ -z "${GITHUB_RUNNER:-}" ]]; then
128128
fi
129129

130130
print_cmake_info
131-
install_pytorch_and_domains
132-
install_flatc_from_source
133131
install_executorch
134132
build_executorch_runner "${BUILD_TOOL}"

.ci/scripts/utils.sh

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -33,42 +33,6 @@ install_pip_dependencies() {
3333
popd || return
3434
}
3535

36-
install_domains() {
37-
echo "Install torchvision and torchaudio"
38-
pip install --no-use-pep517 --user "git+https://github.com/pytorch/audio.git@${TORCHAUDIO_VERSION}"
39-
pip install --no-use-pep517 --user "git+https://github.com/pytorch/vision.git@${TORCHVISION_VERSION}"
40-
}
41-
42-
install_pytorch_and_domains() {
43-
pushd .ci/docker || return
44-
TORCH_VERSION=$(cat ci_commit_pins/pytorch.txt)
45-
popd || return
46-
47-
git clone https://github.com/pytorch/pytorch.git
48-
49-
# Fetch the target commit
50-
pushd pytorch || return
51-
git checkout "${TORCH_VERSION}"
52-
git submodule update --init --recursive
53-
54-
export _GLIBCXX_USE_CXX11_ABI=0
55-
# Then build and install PyTorch
56-
python setup.py bdist_wheel
57-
pip install "$(echo dist/*.whl)"
58-
59-
# Grab the pinned audio and vision commits from PyTorch
60-
TORCHAUDIO_VERSION=$(cat .github/ci_commit_pins/audio.txt)
61-
export TORCHAUDIO_VERSION
62-
TORCHVISION_VERSION=$(cat .github/ci_commit_pins/vision.txt)
63-
export TORCHVISION_VERSION
64-
65-
install_domains
66-
67-
popd || return
68-
# Print sccache stats for debugging
69-
sccache --show-stats || true
70-
}
71-
7236
install_flatc_from_source() {
7337
# NB: This function could be used to install flatbuffer from source
7438
pushd third-party/flatbuffers || return

.github/workflows/trunk.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ jobs:
142142
conda activate "${CONDA_ENV}"
143143
144144
source .ci/scripts/utils.sh
145-
install_flatc_from_source
146145
install_executorch
147146
148147
install_arm
@@ -168,7 +167,6 @@ jobs:
168167
conda activate "${CONDA_ENV}"
169168
170169
source .ci/scripts/utils.sh
171-
install_flatc_from_source
172170
install_executorch
173171
174172
install_arm

0 commit comments

Comments
 (0)