无法为 github 回购构建 conda 配方

Fail to build conda recipe for github repo

我正在努力为 Python 2.7 (Windows 64) 上的 conda 环境构建一个 conda 配方 osrm github repository.

我的 bld.bat 文件是:

python setup.py install
if errorlevel 1 exit 1

meta.yaml

package:
  name: osrm
  version: 0.11.1

source:
    git_url: git@github.com/ustroetz/python-osrm.git
    git_rev: 0.11.1

requirements:
  build:
    - python
    - setuptools
  run:
    - python

test:
  imports: 
    - osrm

about:
  home: https://github.com/ustroetz/python-osrm
  license: MIT
  license_file: LICENSE

当我 运行 conda build osrm/ 我得到以下输出:

PS C:\Users\Samuel\Desktop> conda build osrm/
BUILD START: osrm-0.11.1-py36_0
updating index in: C:\Users\Samuel\Anaconda3\conda-bld\win-64
updating index in: C:\Users\Samuel\Anaconda3\conda-bld\noarch

The following NEW packages will be INSTALLED:

    certifi:        2017.1.23-py36_0 conda-forge
    pip:            9.0.1-py36_0     conda-forge
    python:         3.6.0-2          conda-forge
    setuptools:     33.1.1-py36_0    conda-forge
    vs2015_runtime: 14.0.25420-0     conda-forge
    wheel:          0.29.0-py36_0    conda-forge
    wincertstore:   0.2-py36_0       conda-forge

Cloning into 'C:\Users\Samuel\Anaconda3\conda-bld\osrm_149017
done.
checkout: '0.11.1'
error: pathspec '0.11.1' did not match any file(s) known to g
Warning: failed to download source.  If building, will try ag
Error was:
Command '['C:\Program Files\Git\cmd\git.exe', 'checkout',
Traceback (most recent call last):
  File "C:\Users\Samuel\Anaconda3\Scripts\conda-build-script.
    sys.exit(conda_build.cli.main_build.main())
  File "C:\Users\Samuel\Anaconda3\lib\site-packages\conda_bui
    execute(sys.argv[1:])
  File "C:\Users\Samuel\Anaconda3\lib\site-packages\conda_bui
    noverify=args.no_verify)
  File "C:\Users\Samuel\Anaconda3\lib\site-packages\conda_bui
    need_source_download=need_source_download, config=config)
  File "C:\Users\Samuel\Anaconda3\lib\site-packages\conda_bui
    config=config)
  File "C:\Users\Samuel\Anaconda3\lib\site-packages\conda_bui
    assert not need_source_download, "Source download failed.
AssertionError: Source download failed.  Please investigate.

我真的很纠结这个,为什么我会收到这个错误?

错误消息是因为 0.11.1 不是该存储库中的 Git 标记,因此 git 在结帐阶段失败。参见:https://github.com/ustroetz/python-osrm/tags