Skip to content

Commit 4aed867

Browse files
committed
Fix lddtree import
1 parent 4008962 commit 4aed867

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)