Skip to content

Commit 49ee206

Browse files
committed
Merge remote-tracking branch 'origin/main' into remove-backend
2 parents a99cc41 + 70a73c6 commit 49ee206

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

builder/lib/build.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,17 @@ rec {
217217
bundleOnly = true;
218218
};
219219
buildToml = readBuildConfig path;
220-
contents = builtins.map (pkg: toString pkg) (builtins.attrValues extensions);
220+
benchmarksPath = path + "/benchmarks";
221+
hasBenchmarks = builtins.pathExists benchmarksPath;
222+
benchmarks =
223+
with lib.fileset;
224+
toSource {
225+
root = path;
226+
fileset = maybeMissing benchmarksPath;
227+
};
228+
contents =
229+
builtins.map (pkg: toString pkg) (builtins.attrValues extensions)
230+
++ lib.optionals hasBenchmarks [ (toString benchmarks) ];
221231
in
222232
import ./join-paths {
223233
inherit pkgs contents;

builder/lib/join-paths/default.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ let
1616
"pkgs"
1717
"namePaths"
1818
];
19-
# Iterating over pairs in bash sucks, so let's generate
20-
# the commands in Nix instead.
2119
copyPkg = pkg: ''
2220
cp -r ${pkg}/* ${placeholder "out"}/
2321
'';

kernels/pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ name = "kernels"
33
version = "0.12.2.dev0"
44
description = "Download compute kernels"
55
authors = [
6-
{ name = "OlivierDehaene", email = "olivier@huggingface.co" },
76
{ name = "Daniel de Kok", email = "daniel@huggingface.co" },
87
{ name = "David Holtz", email = "david@huggingface.co" },
9-
{ name = "Nicolas Patry", email = "nicolas@huggingface.co" },
108
]
119
license = { text = "Apache-2.0" }
1210
readme = "README.md"

0 commit comments

Comments
 (0)