Skip to content

Commit 82614ed

Browse files
Revert conditional dependency (#186)
1 parent 51e918e commit 82614ed

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Package.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ let package = Package(
3333
),
3434
.package(
3535
url: "https://github.com/apple/swift-async-algorithms", .upToNextMinor(from: "1.0.0")),
36+
.package(url: "https://github.com/1024jp/GzipSwift", "6.0.1" ... "6.0.1"), // Only needed by MLXMNIST
3637
],
3738
targets: [
3839
.target(
@@ -142,13 +143,6 @@ let package = Package(
142143
]
143144
)
144145

145-
// Add GzipSwift dependency only when building MLXMNIST
146-
if package.targets.contains(where: { $0.name == "MLXMNIST" }) {
147-
package.dependencies.append(
148-
.package(url: "https://github.com/1024jp/GzipSwift", "6.0.1" ... "6.0.1")
149-
)
150-
}
151-
152146
if Context.environment["MLX_SWIFT_BUILD_DOC"] == "1"
153147
|| Context.environment["SPI_GENERATE_DOCS"] == "1"
154148
{

0 commit comments

Comments
 (0)