Skip to content

Conversation

@lucascolley
Copy link
Contributor

implementation for gh-142466, supporting numpy/numpy#30381 and scipy/scipy#24066.

@bedevere-app
Copy link

bedevere-app bot commented Dec 9, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot
Copy link

python-cla-bot bot commented Dec 9, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@lucascolley
Copy link
Contributor Author

ping @FFY00 @hugovk @lysnikolaou

@StanFromIreland
Copy link
Member

You need to update the branch to fix the CI.

- switch cases on `PYTHON_VARIANT`
- remove `minor_version` by using `python3`
- remove runtime-only asan options
@@ -0,0 +1,65 @@
context:
# XXX: keep up to date
Copy link
Member

Choose a reason for hiding this comment

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

Re: https://discuss.python.org/t/cryptic-sequences-in-comments/38694

Can we replace all the "XXX" with "TODO" or something else? Maybe we don't even need it here:

Suggested change
# XXX: keep up to date
# Keep up to date

If we do merge this, we have code in https://github.com/python/release-tools which is run during the first beta, when main becomes the next version, that updates a bunch of versions in the repo. And we can later update that to also update these versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a YAML, TOML, or JSON file that contains the version @hugovk ? If not, could we add one?

Copy link
Member

Choose a reason for hiding this comment

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

There isn't. Yes we can add one, it removes duplication here, and will be easier to programmatically update such a file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

any preference for format / location / name?

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I missed this because it was marked as resolved but I don't think it has been :)

Format: TOML or JSON, we can read using the stdlib.

Location: Tools/pixi-packages/, or Tools/ so other scripts can re-use it.

Name: Hmm, python-version.[ext] ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it was resolved for this PR via the third paragraph of #142469 (review)

Copy link
Member

Choose a reason for hiding this comment

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

Okay, thanks!

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
lucascolley and others added 2 commits December 10, 2025 17:45
Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
Copy link
Member

@FFY00 FFY00 left a comment

Choose a reason for hiding this comment

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

Thanks so much for working on this @lucascolley! This is PR looks great, and sets up to add other sanitizer variants.

The pixi limitation that requires us to have separate recipes for each variant (prefix-dev/pixi#4599) is unfortunate, but I think doable from a maintenance POV, given that we have a few people interested in this. We'll see how it translates in practice, and hope the feature request gets implemented in the meantime.

I opened prefix-dev/rattler-build#2047 regarding the version string that currently needs to be updated manually, but could be dirtermined from git, with additional information. But let's wait for the pixi jinja functions to get stabilized before adding them to our recipes.

I'll leave this PR open a couple days to give a bit more time for folks to give feedback, but otherwise, this looks good to go 😊

@FFY00
Copy link
Member

FFY00 commented Dec 15, 2025

Looks like nobody raised any issues 😊

Congrats @lucascolley!

@FFY00 FFY00 merged commit 8bb5b6e into python:main Dec 15, 2025
50 checks passed
@lucascolley
Copy link
Contributor Author

thanks a lot Filipe!

fatelei pushed a commit to fatelei/cpython that referenced this pull request Dec 16, 2025
…142469)

* WIP: ENH: Pixi package definitions for downstream development

[skip ci]

* linux-64 support

* tidy gitignore

* respond to review
- switch cases on `PYTHON_VARIANT`
- remove `minor_version` by using `python3`
- remove runtime-only asan options

* README updates

* use `.md` to preview rendering

* Apply suggestions from code review

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

* Apply suggestion from @FFY00

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>

* Apply suggestion from @FFY00

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>

* Apply suggestion from @FFY00

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>

* Apply suggestion from @lucascolley

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
@lucascolley lucascolley deleted the pixi-build branch December 19, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants