Skip to content

python313.pkgs.installer: Fix build#287761

Merged
mweinelt merged 1 commit intoNixOS:masterfrom
jtojnar:python313-installer-fix
Feb 10, 2024
Merged

python313.pkgs.installer: Fix build#287761
mweinelt merged 1 commit intoNixOS:masterfrom
jtojnar:python313-installer-fix

Conversation

@jtojnar
Copy link
Copy Markdown
Member

@jtojnar jtojnar commented Feb 10, 2024

Description of changes

Python 3.13 removed importlib.resources.read_binary breaking the build of installer package.
That is transitive dependency of pygobject3 among others.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Feb 10, 2024
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Feb 10, 2024
@jtojnar jtojnar requested a review from mweinelt February 10, 2024 14:55
Comment thread pkgs/development/python-modules/bootstrap/installer/default.nix Outdated
@mweinelt
Copy link
Copy Markdown
Member

mweinelt commented Feb 10, 2024

Interesting. Seems pretty early, we're not going to recurse into python313Packages for a while, but it is of course reasonable to allow playing with it.

That is transitive dependency of pygobject3 among others.

Hopefully not yet.

@jtojnar
Copy link
Copy Markdown
Member Author

jtojnar commented Feb 10, 2024 via email

@mweinelt
Copy link
Copy Markdown
Member

Indeed, you just didn't commit the patch.

Python 3.13 removed `importlib.resources.read_binary` breaking the build of `installer` package.
@jtojnar jtojnar force-pushed the python313-installer-fix branch from 724feb8 to ac83abc Compare February 10, 2024 15:59
@jtojnar
Copy link
Copy Markdown
Member Author

jtojnar commented Feb 10, 2024 via email

@jtojnar
Copy link
Copy Markdown
Member Author

jtojnar commented Feb 10, 2024 via email

@mweinelt mweinelt merged commit ef62069 into NixOS:master Feb 10, 2024
@jtojnar jtojnar deleted the python313-installer-fix branch February 10, 2024 18:11
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: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants