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

Refactor develop command to act identical to PEP 660 editable wheels #653

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

messense
Copy link
Member

Closes #652

@netlify

This comment has been minimized.

@messense messense marked this pull request as ready for review October 14, 2021 15:31
@messense messense force-pushed the develop-is-editable branch from 75d5802 to 4a38a2b Compare October 15, 2021 03:00
@messense messense force-pushed the develop-is-editable branch from 4a38a2b to 93f81f7 Compare October 15, 2021 06:12
@messense messense merged commit 8a5030f into PyO3:main Oct 15, 2021
@messense messense deleted the develop-is-editable branch October 15, 2021 06:36
)?;
let wheels = build_context.build_wheels()?;
for (filename, _supported_version) in wheels.iter() {
let command = [
Copy link
Member

Choose a reason for hiding this comment

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

Have you measured how long that takes? In the old implementation I intentionally didn't use pip at all because of the overhead of writing the archive, starting pip, reading the archive and writing the files out again, which you have to do after every rust change

Copy link
Member Author

@messense messense Oct 15, 2021

Choose a reason for hiding this comment

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

With the pyo3-mixed example it takes about 1 to 2 seconds to install the built wheel with pip which I think it's acceptable given that we don't have to reimplement entry points now.

messense added a commit to messense/maturin that referenced this pull request Nov 15, 2022
After PyO3#653, `develop` tests already covered `editable`
since it uses editable installs internally
bors bot added a commit that referenced this pull request Nov 15, 2022
1271: Remove unnecessary `editable` tests r=messense a=messense

After #653, `develop` tests already covered `editable` since it uses editable installs internally

Co-authored-by: messense <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor maturin develop to act identical to PEP 660 editable wheels
2 participants