25

I know that I can tell conda to build from github as:

source:
  fn:  v1.6.0.tar.gz
  url: https://github.com/SciTools/iris/archive/v1.6.0.tar.gz
  md5: 24c2d55758325a8f05aadf99748c0d2a

or

source:
  git_url: git@github.com:SciTools/iris.git
  git_tag: v1.6.0

but how would one tell conda to build from a github branch?

merv
  • 67,214
  • 13
  • 180
  • 245
Rich Signell
  • 14,842
  • 4
  • 49
  • 77

1 Answers1

27

Just put the branch name in the git_tag section. All it does is git checkout that "tag", so it doesn't have to be an actual git tag. It can be anything that git can checkout.

For example, if you want to conda build from branch udunits_xml_path, use:

source:
  git_url: https://github.com/esc24/iris.git
  git_tag: udunits_xml_path
Jean-François Corbett
  • 37,420
  • 30
  • 139
  • 188
asmeurer
  • 86,894
  • 26
  • 169
  • 240