Skip to content

Commit c77cacd

Browse files
NicolasHugjithunnair-amd
authored andcommitted
Fix post-build-script (pytorch#8982)
(cherry picked from commit 29066f5)
1 parent 68ba7ec commit c77cacd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packaging/pre_build_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ else
3838
pushd ext_libraries
3939
popd
4040
export PATH="$(pwd)/ext_libraries/bin:$PATH"
41-
pip install auditwheel
41+
pip install "auditwheel<6.3.0"
4242

4343
# Point to custom libraries
4444
export LD_LIBRARY_PATH=$(pwd)/ext_libraries/lib:$LD_LIBRARY_PATH

packaging/wheel/relocate.py

Lines changed: 4 additions & 1 deletion
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)