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

Use extension_name instead of module_name for CFFI extensions in develop mode #1476

Merged
merged 2 commits into from
Feb 12, 2023

Conversation

luizirber
Copy link
Contributor

@luizirber luizirber commented Feb 12, 2023

I noticed when running maturin develop with sourmash that the CFFI extension ended in src/sourmash/sourmash instead of the expected src/sourmash/_lowlevel.py (to match the [package.maturin.metadata.name] field).
maturin build puts the extension in the right place, so checking how it worked I noticed that changing the line from this PR would make the behavior match in develop and build.

(and now I'm opening a PR to see if I missed some test and I'm breaking other use cases 😬 )

@netlify
Copy link

netlify bot commented Feb 12, 2023

Deploy Preview for maturin-guide ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7325a65
🔍 Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/63e8624ae23b3c000828a2f7
😎 Deploy Preview https://deploy-preview-1476--maturin-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@messense messense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, could you please add a changelog entry in CHANGELOG.md? Thanks!

@messense messense added the bindings/cffi cffi bindings label Feb 12, 2023
@messense
Copy link
Member

bors r+

@messense
Copy link
Member

messense commented Feb 12, 2023

I'll backport this to v0.14 and release a new version soon.

@bors
Copy link
Contributor

bors bot commented Feb 12, 2023

@bors bors bot merged commit bbbd3e9 into PyO3:main Feb 12, 2023
@luizirber luizirber deleted the lirber/cffi_develop_extension_name branch February 12, 2023 04:47
@luizirber
Copy link
Contributor Author

I was looking at the project history and just noticed this PR is the CFFI equivalent of #1416. Mostly commenting to link both PRs =]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings/cffi cffi bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants