Proper way to include non-extension library in wheel #853
Unanswered
reverendbedford
asked this question in
Q&A
Replies: 1 comment
-
I also have this problem, without
However, when I use github action with cibuildwheel, we can build wheel successfully but repair failed.
because of:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My project is structured to first build a common shared library containing the basic functionality (say
libbasic.so
) and then a series of extension modules (saymodule_a.cpython-xx-yy.so
,module_b.cpython-xx-yy.so
). The modules link to libbasic.so and I have theRUNPATH
set so that when you build and install the source distribution the common library gets installed to the package folder and the modules all pickup the common library correctly.How should I structure a project of this type to play nicely with cibuildwheel and auditwheel? If I don't change anything I get an error relating to the common library:
I can get around this (at least on linux) by first compiling
libbasic.so
by itself, settingLD_LIBRARY_PATH
to make it available to the linker, and then run the cibuildwheel process. But that seems inelegant.I don't think this is a bug at all, just wonder how to structure this type of package. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions