Possible to do “conda build” from github branch?

北战南征 提交于 2019-12-21 03:18:15

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/22546878/possible-to-do-conda-build-from-github-branch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!