conda build supports a variety of methods for importing source to be used in the build, as outlined here. Is there a way to import source from a local archive file (.zip,.tar.gz, etc.)? I have attempted to specify the location of the archive file using the path: option that is used to point at local source; however, the archive file is moved into the build work directory without being unziped. I can obviously explicitly unpack the archive; however, this requires me to specify the file name explicitly in the build file which is not desirable for a number of reasons. Is there a way to import source from a local archive file and have it automatically unpacked to the work directory as is done for files imported via url and fn specification?
You can try using the file://
protocol in the url
field:
source:
url: file:///home/src/mypkgsrc.tar.bz2
On Windows, one can try:
source:
url: file://C:\path\to\mypkgsrc.tar.bz2