Using a different conda-build root directory

I create my own conda recipe, which I test with git. There are several concerts in the repository. Instead of ~/conda-bldchecking in /ssd, I'd like to check in , which will be faster. How can I specify it? Also, how can I specify the git depth when doing cloning?

+4
source share
1 answer

I would like to check it in /ssd, which will be faster. How can I specify it?

conda-build selects the root directory for all his work as follows:

  • If CONDA_BLD_PATHdefined in your environment, use
  • , ~/.condarc , , conda-build/root-dir. :
   # .condarc
   conda-build:
     root-dir: /ssd/conda-bld
  1. $(conda info --root)/conda-bld
  2. , ~/conda-bld

(. , .)

, git ?

git_depth source meta.yaml:

# meta.yaml
package:
  name: foo
  version: '1.0'

source:
  git_url: https://github.com/foo/bar
  git_depth: 1

. git_depth. , git_tag. N ( git_depth: N) HEAD, .

+4

Source: https://habr.com/ru/post/1653333/


All Articles