python313.pkgs.installer: Fix build#287761
Merged
mweinelt merged 1 commit intoNixOS:masterfrom Feb 10, 2024
Merged
Conversation
mweinelt
reviewed
Feb 10, 2024
Member
|
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.
Hopefully not yet. |
Member
Author
|
Relative path references are resolved relative to the Nix file they are
within and evaluate to a path object that internally probably uses
absolute path. Otherwise, we could not really use them in any Nix file
that is imported anywhere else.
…On Sat, Feb 10 2024 at 07:00:23 -08:00:00, Martin Weinelt ***@***.***> wrote:
@mweinelt commented on this pull request.
In pkgs/development/python-modules/bootstrap/installer/default.nix:
> @@ -7,7 +7,7 @@
stdenv.mkDerivation {
pname = "${python.libPrefix}-bootstrap-${installer.pname}";
- inherit (installer) version src meta;
+ inherit (installer) version src patches meta;
Can't inherit it like that, because the path will be different.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Member
|
Indeed, you just didn't commit the patch. |
Python 3.13 removed `importlib.resources.read_binary` breaking the build of `installer` package.
724feb8 to
ac83abc
Compare
Member
Author
|
I meant that `pygobject3` depends on `installer`. So when I tried to build `python313.pkgs.pygobject3` to test pygobject/pygobject-stubs#167 with [PEP 702](https://peps.python.org/pep-0702/), it failed on installer depencency.
|
Member
Author
|
On Sat, Feb 10 2024 at 07:16:38 -08:00:00, Martin Weinelt ***@***.***> wrote:
Indeed, you just didn't commit the patch.
Oops, fixed.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Python 3.13 removed
importlib.resources.read_binarybreaking the build ofinstallerpackage.That is transitive dependency of
pygobject3among others.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.