Skip to content
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

cffi shared library filenames are not prefixed by "lib" on linux and darwin #2396

Closed
2 tasks
doug-q opened this issue Dec 20, 2024 · 1 comment · Fixed by #2406
Closed
2 tasks

cffi shared library filenames are not prefixed by "lib" on linux and darwin #2396

doug-q opened this issue Dec 20, 2024 · 1 comment · Fixed by #2406
Labels
bindings/cffi cffi bindings enhancement New feature or request

Comments

@doug-q
Copy link

doug-q commented Dec 20, 2024

Bug Description

For example see https://cffi.readthedocs.io/en/stable/embedding.html#id12.

Omitting this prefix makes it very challenging to link with these libraries whenever they have a SONAME, which will have the lib prefix. (When do they have a SONAME? it's not clear to me, except that it's clearly "sometimes").

See #1918

Your maturin version (maturin --version)

latest

Your Python version (python -V)

any

Your pip version (pip -V)

any

What bindings you're using

cffi

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

  1. configure a cffi maturin project
  2. maturin develop
  3. $ tree .
@doug-q doug-q added the bug Something isn't working label Dec 20, 2024
@messense messense added enhancement New feature or request and removed bug Something isn't working labels Dec 20, 2024
@messense
Copy link
Member

Labeling this as a feature request to support cffi embedding instead of bug.

@messense messense added the bindings/cffi cffi bindings label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings/cffi cffi bindings enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants