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

More consistent build-binaries.yml #11478

Merged
merged 7 commits into from
Feb 18, 2025
Merged

Conversation

konstin
Copy link
Member

@konstin konstin commented Feb 13, 2025

For uv-build, we need to duplicate a lot of the build-binaries.yml logic to build another source distribution and wheel. In preparation for that I tried to make the invocations more consistent, to make it easier to review the changes when adding the uv-build builds on top.

Split out from #11446

We are not using submodules.
@konstin konstin added the internal A refactor or improvement that is not user-facing label Feb 13, 2025
@konstin konstin requested a review from zanieb February 13, 2025 12:55
@konstin konstin force-pushed the konsti/refactor-build-binaries branch from a7720d1 to 62e1d2e Compare February 13, 2025 12:59
# pip3 install -U pip
# run: |
# pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall
# pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall
Copy link
Member

Choose a reason for hiding this comment

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

Did you test this change?

Copy link
Member Author

@konstin konstin Feb 13, 2025

Choose a reason for hiding this comment

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

No, i only made them for consistency, in case we happen to reactivate it. In that case it would be nice if the re-added code was following the same pattern.

Copy link
Member

Choose a reason for hiding this comment

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

It'd be great to fix #11231 :(

Comment on lines -129 to +125
pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall
pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall
Copy link
Member

Choose a reason for hiding this comment

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

Why prefer --find-links over installing the wheel directly?

Copy link
Member Author

Choose a reason for hiding this comment

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

It works independent of the shell used so we can use it for testing on all platforms

Copy link
Member

Choose a reason for hiding this comment

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

Can't we just request shell: sh and retain the glob? This feels more complicated.

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently on main, we have 6x --find-links and 4x ${{ env.PACKAGE_NAME }}-* in build-binaries.yml. I prefer the --find-links as I can run it locally on any platform and shell, it doesn't rely on shell expansions.

@konstin
Copy link
Member Author

konstin commented Feb 18, 2025

This PR should be ready to merge

@zanieb zanieb merged commit 3634a4d into main Feb 18, 2025
91 checks passed
@zanieb zanieb deleted the konsti/refactor-build-binaries branch February 18, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal A refactor or improvement that is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants