Skip to content

python3Modules.meson-python: prepare for structuredAttrs - #474130

Merged
doronbehar merged 1 commit into
NixOS:stagingfrom
SFrijters:python-modules-meson-python-structuredattrs
Jan 8, 2026
Merged

doronbehar merged 1 commit into
NixOS:stagingfrom
SFrijters:python-modules-meson-python-structuredattrs

Conversation

@SFrijters

Copy link
Copy Markdown
Member

Eventually this variable should be quoted, but this is backwards compatible for now.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 6.topic: python Python is a high-level, general-purpose programming language. labels Dec 25, 2025
@SFrijters
SFrijters changed the base branch from master to staging December 25, 2025 15:52
@nixpkgs-ci nixpkgs-ci Bot closed this Dec 25, 2025
@nixpkgs-ci nixpkgs-ci Bot reopened this Dec 25, 2025
@SFrijters
SFrijters requested a review from uninsane December 30, 2025 21:52
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Dec 30, 2025
@uninsane

Copy link
Copy Markdown
Contributor

this hook borrows from pkgs/by-name/me/meson/setup-hook.sh; the meson hook itself was made compatible with structuredAttrs here.

i don't know enough about structuredAttrs to say if your approach here is "correct" or not. my intuition would be to track the original meson setup-hook as close as possible though, i.e.

local mesonFlags=()
concatTo flagsArray mesonFlags mesonFlagsArray

tagging @doronbehar for your familiarity in these areas

@uninsane
uninsane requested a review from doronbehar December 31, 2025 03:45
@doronbehar

doronbehar commented Dec 31, 2025 via email

Copy link
Copy Markdown
Contributor

@wolfgangwalther

Copy link
Copy Markdown
Contributor

this hook borrows from pkgs/by-name/me/meson/setup-hook.sh; the meson hook itself was made compatible with structuredAttrs here.

i don't know enough about structuredAttrs to say if your approach here is "correct" or not. my intuition would be to track the original meson setup-hook as close as possible though

Agreed. All the setup hooks should follow the same concatTo flagsArray ... pattern.

Eventually this variable should be quoted, but this is backwards compatible for now.
@SFrijters
SFrijters force-pushed the python-modules-meson-python-structuredattrs branch from c1976f1 to a01faf3 Compare January 7, 2026 20:25
@SFrijters

Copy link
Copy Markdown
Member Author

Right, I was actually using the implementation I just force-pushed for my latest rebuild (last week) and it worked. Is this the correct one?

@wolfgangwalther wolfgangwalther left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, the diff LGTM; I did not build, though.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jan 7, 2026
@doronbehar
doronbehar added this pull request to the merge queue Jan 8, 2026
Merged via the queue into NixOS:staging with commit 5c1a3b8 Jan 8, 2026
@SFrijters
SFrijters deleted the python-modules-meson-python-structuredattrs branch January 23, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants