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

Add is_abi3 and is_python_min helper variables #6896

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Conversation

isuruf
Copy link
Member

@isuruf isuruf commented Jan 3, 2025

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

@isuruf isuruf requested a review from a team as a code owner January 3, 2025 07:40
@conda-forge-admin
Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

Copy link
Member

@h-vetinari h-vetinari left a comment

Choose a reason for hiding this comment

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

I just worked on something today where this would have come in handy (even though it was a pretty niche use-case; see cython feedstock), so fine from my POV. Would be interested what cases you had in mind.

The one downside is that this will break all recipes that override the python-zip, but there aren't many of those luckily

@isuruf
Copy link
Member Author

isuruf commented Jan 6, 2025

My use-case is for ABI3 packages. See the example recipe at https://github.com/conda-forge/staged-recipes/pull/28743/files#diff-bafedb486e7a5dc8c3acc5a3efb089e495842a60d83dd07daa8720ae9615dea0

@isuruf isuruf merged commit 87153f2 into conda-forge:main Jan 6, 2025
3 checks passed
@isuruf
Copy link
Member Author

isuruf commented Jan 6, 2025

Thanks for the review

@isuruf isuruf deleted the abi3 branch January 6, 2025 04:01
@isuruf
Copy link
Member Author

isuruf commented Jan 6, 2025

Oh, did you want me to wait for a review from another?

@h-vetinari
Copy link
Member

Oh, did you want me to wait for a review from another?

Nah, all good. Thanks for the python-abi3-package-sample reference - that makes a lot of sense. Exciting new infrastructure!

Comment on lines +860 to +861
is_abi3:
- true
Copy link
Member

Choose a reason for hiding this comment

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

Should is_abi3 be zipped with is_freethreading? Otherwise it seems we would just turn off ABI3 completely when a free-threading build is added

@@ -34,6 +34,7 @@ __migrator:
additional_zip_keys:
- channel_sources
- is_freethreading
- is_abi3
Copy link
Member Author

Choose a reason for hiding this comment

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

@jakirkham, is_abi3 is zipped in freethreading migrator

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.

4 participants