Hi, I'm just starting out with swift and trying to use PythonKit.
Package.swift file and was able to build it without errors (although there were several warnings like
/home/tushar/dev/swiftDSP/.build/x86_64-unknown-linux-gnu/debug/Cminizip.build/module.modulemap:2:14: warning: umbrella directory '/home/tushar/dev/swiftDSP/.build/checkouts/swift-zip/Sources/Cminizip/include' not found umbrella "/home/tushar/dev/swiftDSP/.build/checkouts/swift-zip/Sources/Cminizip/include")
// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "swiftDSP", products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: "swiftDSP", targets: ["swiftDSP"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. .package(url: "https://github.com/pvieito/PythonKit.git", .branch("master")), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages this package depends on. .target( name: "swiftDSP", dependencies: ["PythonKit"]), .testTarget( name: "swiftDSPTests", dependencies: ["swiftDSP"]), ] )
But when I try to import PythonKit I get an import error. I'm not sure what I'm doing wrong here.
P.S. I'm working on Ubuntu 20.04