-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Use
uv build
instead of pypa/build
When I started the new builders I couldn't make `uv build` work, but now it seems to work just fine and greatly simplifies bootstrapping. This removes the need to have any bootstrapping set at all.
- Loading branch information
1 parent
e5242b5
commit d8174ad
Showing
9 changed files
with
51 additions
and
156 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,13 @@ | ||
{ lib, pyproject-nix }: | ||
|
||
let | ||
inherit (pyproject-nix.build.lib) isBootstrapPackage; | ||
inherit (lib) mapAttrs filterAttrs; | ||
inherit (builtins) readDir; | ||
|
||
# List all packages in directory | ||
paths = filterAttrs (_name: type: type == "directory") (readDir ./.); | ||
|
||
in | ||
{ callPackage, pyprojectBootstrapHook }: | ||
{ callPackage }: | ||
# Automatically call all packages | ||
(mapAttrs ( | ||
name: _: | ||
callPackage (./. + "/${name}") ( | ||
# Override bootstrap packages with bootstrap hook | ||
if isBootstrapPackage name then | ||
{ | ||
pyprojectHook = pyprojectBootstrapHook; | ||
} | ||
else | ||
{ } | ||
) | ||
) paths) | ||
(mapAttrs (name: _: callPackage (./. + "/${name}") { }) paths) |