<font size=2 face="sans-serif">Thanks Max for your answer. To your point,
thinking about it more, it's probably not a great idea to have SPM execute
arbitrary scripts.</font><br><br><font size=2 face="sans-serif">It is good news to hear that something
similar to option #1 could be implemented and that there are plans to provide
something as part of SPM that can take of installing/downloading external
[non-Swift package] dependencies that a Swift Package may depend on.</font><br><br><font size=2 face="sans-serif">Does providing this functionality in
SPM have a high priority? Any other details about the plans for this feature
that could be shared at this point?<br><br>Regards,<br> &nbsp; Ricardo Olivieri<br> &nbsp; Software Engineer</font><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Max Howell &lt;max.howell@apple.com&gt;</font><br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Ricardo N Olivieri/Austin/IBM@IBMUS</font><br><font size=1 color=#5f5f5f face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">swift-build-dev@swift.org</font><br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">01/25/2016 06:53 PM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [swift-build-dev]
Swift Package Manager - Support for downloading/installing external dependencies
that a Swift Package may have</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">max.howell@apple.com</font><br><hr noshade><br><br><br><font size=3>Yes, we plan to provide something here.</font><br><br><font size=2 face="sans-serif">1) Swift Packages can specify dependencies
on other libraries that are not Swift Packages (such as C libraries). The
Swift Package Manager could then &quot;parse&quot; 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.</font><br><br><font size=3>It couldn’t really be this simple, but we can do something
like this.</font><br><br><font size=2 face="sans-serif">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: </font><a href="https://gist.github.com/edouard-lopez/503d40a5c1a49cf8ae87"><font size=2 color=blue face="sans-serif"><u>https://gist.github.com/edouard-lopez/503d40a5c1a49cf8ae87</u></font></a><br><br><font size=3>We don’t intend to execute arbitrary scripts.</font><br><br><br><BR>