Skip to content

Commit 03472bd

Browse files
authored
Remove duplicate libatomic installation check
Removed duplicate installation of libatomic for aarch64.
1 parent 3d2263e commit 03472bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ set -euxo pipefail
99

1010
# This script is run before building ExecuTorch binaries
1111

12+
# On aarch64, we need to install libatomic explicitly for meta-pytorch/tokenizers to work.
13+
if [[ "$(uname -m)" == "aarch64" ]]; then
14+
sudo dnf install -y libatomic
15+
fi
16+
1217
# Manually install build requirements because `python setup.py bdist_wheel` does
1318
# not install them. TODO(dbort): Switch to using `python -m build --wheel`,
1419
# which does install them. Though we'd need to disable build isolation to be
1520
# able to see the installed torch package.
1621

1722
"${GITHUB_WORKSPACE}/${REPOSITORY}/install_requirements.sh" --example
18-
19-
# On aarch64, we need to install libatomic explicitly for meta-pytorch/tokenizers to work.
20-
if [[ "$(uname -m)" == "aarch64" ]]; then
21-
sudo dnf install -y libatomic
22-
fi

0 commit comments

Comments
 (0)