Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 1d4f685

Browse files
authored
build: add a hard dependency on PythonKit with SPM (#1151)
Unlike CMake, SPM does not permit any control over build configuration. Make PythonKit a hard dependency for the package. This along with the remainder of the changes that have been made to the build system now enable building Swift APIs with SPM in a complete configuration of PythonKit + Swift Numerics + X10. This simplifies the path towards getting a SPM built Swift APIs with X10 and PythonKit support with a standard toolchain.
1 parent 7013286 commit 1d4f685

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Package.swift

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ let package = Package(
3434
],
3535
dependencies: [
3636
.package(url: "https://github.com/apple/swift-numerics", .branch("main")),
37+
.package(url: "https://github.com/pvieito/PythonKit.git", .branch("master")),
3738
],
3839
targets: [
3940
.target(
@@ -43,6 +44,7 @@ let package = Package(
4344
name: "TensorFlow",
4445
dependencies: [
4546
"Tensor",
47+
"PythonKit",
4648
.product(name: "Numerics", package: "swift-numerics"),
4749
]),
4850
.target(

0 commit comments

Comments
 (0)