-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Description
I am trying to setup cibuildwheel
that fails at the repair step given these two files.
# ls -la *.so.2 *whl
-rwxr-xr-x. 1 root root 1965280 Jun 21 11:29 libopendht.so.2
-rw-r--r--. 1 root root 1507129 Jun 20 10:19 opendht-2.4.5-cp36-cp36m-linux_x86_64.whl
Fails with traceback.
INFO:auditwheel.main_repair:Repairing opendht-2.4.5-cp36-cp36m-linux_x86_64.whl
Traceback (most recent call last):
File "/usr/local/bin/auditwheel", line 8, in <module>
sys.exit(main())
File "/opt/_internal/pipx/venvs/auditwheel/lib/python3.9/site-packages/auditwheel/main.py", line 59, in main
rval = args.func(args, p)
File "/opt/_internal/pipx/venvs/auditwheel/lib/python3.9/site-packages/auditwheel/main_repair.py", line 161, in execute
out_wheel = repair_wheel(
File "/opt/_internal/pipx/venvs/auditwheel/lib/python3.9/site-packages/auditwheel/repair.py", line 74, in repair_wheel
raise ValueError(
ValueError: Cannot repair wheel, because required library "libopendht.so.2" could not be located
I prepended LD_LIBRARY_PATH=.
to the command as instructed in #85, and still got the same message. The command became this.
LD_LIBRARY_PATH=. auditwheel repair -w /tmp/cibuildwheel/repaired_wheel /tmp/cibuildwheel/built_wheel/opendht-2.4.5-cp36-cp36m-linux_x86_64.whl
I tried LD_LIBRARY_PATH=
but it didn't work too.
https://github.com/abitrolly/opendht/runs/6981236904?check_suite_focus=true
Found it strange given this piece of code.
auditwheel/src/auditwheel/lddtree.py
Lines 104 to 106 in 55bc5ee
if ldpath == "": | |
# The ldso treats "" paths as $PWD. | |
ldpath = os.getcwd() |
LD_LIBRARY_PATH=$PWD
works fine.
https://github.com/abitrolly/opendht/runs/6987495549?check_suite_focus=true
PasaOpasen
Metadata
Metadata
Assignees
Labels
No labels