3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /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
3
9
4
10
if [[ " $( uname) " == " Linux" && " $( uname -m) " != " aarch64" ]]; then
5
11
extra_decoders_channel=" --pre --index-url https://download.pytorch.org/whl/nightly/cpu"
Original file line number Diff line number Diff line change 36
36
conda install libwebp -y
37
37
conda install libjpeg-turbo -c pytorch
38
38
yum install -y freetype gnutls
39
- pip install auditwheel
39
+ pip install " auditwheel<6.3.0 "
40
40
fi
41
41
42
42
pip install numpy pyyaml future ninja
Original file line number Diff line number Diff line change 15
15
16
16
# Third party imports
17
17
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
19
22
20
23
21
24
ALLOWLIST = {
0 commit comments