-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPackage.swift
More file actions
46 lines (42 loc) · 1.08 KB
/
Package.swift
File metadata and controls
46 lines (42 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// swift-tools-version:5.9
import PackageDescription
let package = Package.init(
name: "Python",
platforms: [
.macOS(.v14),
],
products: [
.library(
name: "Python",
targets: ["PythonSupport"]),
],
dependencies: [
],
targets: [
.target(
name: "PythonSupport",
dependencies: ["PythonWrapper"],
linkerSettings: [.linkedFramework("Python")]
),
.target(
name: "PythonWrapper",
dependencies: ["RawPythonWrapper"],
linkerSettings: [.linkedFramework("Python")]
),
.target(
name: "RawPythonWrapper",
dependencies: ["PythonX"],
cSettings: [
.headerSearchPath("Python.framework/Headers")
]
),
/*
.binaryTarget(name: "PythonX",
path: "./HandRolled/Python.xcframework"
),
*/
.binaryTarget(name: "PythonX",
url: "https://github.com/r0ml/SwiftyPython/releases/download/3.12.0/Python.xcframework.zip",
checksum: "e0cc624767d3b14768b7d44b9fa93e0eb13f3531273179be9e157467879a57be"),
]
)