[swift-build-dev] Swift Package Manager - Support for downloading/installing external dependencies that a Swift Package may have

Max Howell max.howell at apple.com
Mon Jan 25 18:52:22 CST 2016


Yes, we plan to provide something here.

> 1) Swift Packages can specify dependencies on other libraries that are not Swift Packages (such as C libraries). The Swift Package Manager could then "parse" this metadata, download and install the corresponding dependencies on the system (e.g. by executing apt-get or similar commands). This could be part of the Packages.swift file or a new file for specifying dependencies that are not Swift Packages.

It couldn’t really be this simple, but we can do something like this.

> 2) Define a naming convention for a script that, if found inside a Swift Package, is executed by the Swift Package Manager. This script could contain any set of instructions that should be executed as part of the installation of the Swift Package, such as downloading and installing any dependencies that the Swift Package needs. For instance, such a file could include instructions similar to those found here: https://gist.github.com/edouard-lopez/503d40a5c1a49cf8ae87 <https://gist.github.com/edouard-lopez/503d40a5c1a49cf8ae87>
We don’t intend to execute arbitrary scripts.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20160125/6a5569b0/attachment.html>


More information about the swift-build-dev mailing list