Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 29066f5

Browse files
authoredMar 18, 2025
Fix post-build-script (#8982)
1 parent ade1c9b commit 29066f5

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed
 

‎packaging/post_build_script.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
2-
LD_LIBRARY_PATH="/usr/local/lib:$CUDA_HOME/lib64:$LD_LIBRARY_PATH" python packaging/wheel/relocate.py
2+
set -euxo pipefail
3+
4+
if [ -n "${CUDA_HOME:-}" ]; then
5+
LD_LIBRARY_PATH="/usr/local/lib:${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}"
6+
fi
7+
8+
python packaging/wheel/relocate.py
39

410
if [[ "$(uname)" == "Linux" && "$(uname -m)" != "aarch64" ]]; then
511
extra_decoders_channel="--pre --index-url https://download.pytorch.org/whl/nightly/cpu"

‎packaging/pre_build_script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ else
3636
conda install libwebp -y
3737
conda install libjpeg-turbo -c pytorch
3838
yum install -y freetype gnutls
39-
pip install auditwheel
39+
pip install "auditwheel<6.3.0"
4040
fi
4141

4242
pip install numpy pyyaml future ninja

‎packaging/wheel/relocate.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515

1616
# Third party imports
1717
if sys.platform == "linux":
18-
from auditwheel.lddtree import lddtree
18+
try:
19+
from auditwheel.lddtree import lddtree
20+
except ImportError:
21+
from auditwheel import lddtree
1922

2023

2124
ALLOWLIST = {

0 commit comments

Comments
 (0)
Failed to load comments.