I am creating my own conda recipe which I checkout with git. The repository is few gigs. Instead of doing a checkout in ~/conda-bld, I would like it to checkout in /ssd, which is going to be faster. How can I specify it?
Also, how can I specify git depth when doing a clone?
I would like it to checkout in
/ssdwhich is going to be faster. How can I specify it?
conda-build chooses a root directory for all of its work in the following way:
CONDA_BLD_PATH is defined in your environment, use that~/.condarc exists, check if conda-build/root-dir is defined. For example: # .condarc
conda-build:
root-dir: /ssd/conda-bld
$(conda info --root)/conda-bld
~/conda-bld
(See the source code for these steps if you're curious.)
Also, how can I specify git depth when doing a clone?
You can use git_depth in the source section of meta.yaml:
# meta.yaml
package:
name: foo
version: '1.0'
source:
git_url: https://github.com/foo/bar
git_depth: 1
Note: I do not recommend using git_depth. It won't work well if you also specify a git_tag -- If the tag is not visible within N commits (for git_depth: N) of the HEAD, then your checkout will fail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With