-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subproject with static libraries fails the build in 0.13.0 onward (but not in 0.12.0) #673
Comments
Shared libraries also have nowhere to go in a wheel, so you'll run into that same problem. I think what you want is only use the dependency from the subproject, e.g. I'll note that a static library is a lot easier to deal with in a wheel. If you want to use a shared library, there may be issues (I actually don't know how to do it, it kinda requires running |
@rgommers , thanks for your reply!
|
@rgommers , |
I think they go under the data directory right, and then get installed to Is your package public perhaps? We're lacking a test package for this config right now unfortunately - we should add that, with more docs, since this isn't the first question about subprojects with shared/static libraries.
I think |
Yeah, to
I agree. But what else can be done if I want (or have to) use dynamic libraries with Python C extension?
Unfortunately (and I mean it sincerely) it is not. |
So the default way of dealing with a shared library if it's not in a Meson subproject is:
If the shared library is in a Meson subproject, you can do essentially the same thing now. Skip install of the subproject in your
That should work. What does not work is using a temporary directory, e.g. when doing Note: I suspect that the bit we should add at some point in meson-python is an option to invoke |
When building with a subproject which provides both static and dynamic libraries, I get the following error with 0.13.0 onward:
With meson-python 0.12.0 everything works fine.
Looking at #35, I understand that there is no location in wheels for static libraries, and they aren't needed at runtime, but for me
--skip-subprojects
install option is not a solution, as I do need the dynamic libraries which this subproject installs. What can I do (besides just using version 0.12.0, where it works 😄 )?The text was updated successfully, but these errors were encountered: