0

我想为https://github.com/uber/h3-py创建一个 conda-forge 包,并按照https://conda-forge.org/docs/maintainer/adding_pkgs.html#staging-test 的说明进行操作-本地

配方可以在这​​里找到:https ://github.com/geoHeil/staged-recipes/blob/h3-py/recipes/h3/meta.yaml

尝试使用以下命令执行本地构建时:

/.circleci/run_docker_build.sh

它失败了:

echo 'cc required but not found.'

meta.yml 的重要部分如下所示:

requirements:
  build:
    # If your project compiles code (such as a C extension) then add the required compilers as separate entries here.
    # Compilers are named 'c', 'cxx' and 'fortran'.
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - cmake
    - make
  host:
    - python
    - pip
  run:
    - python

我怎样才能让它工作以将其提交给 conda-forge?

cc是对编译器的一般参考,如何在不分叉源存储库/及其安装脚本的情况下将这样的参考/符号链接添加到 conda 提供的 c、c++ 编译器(可能是 cxx/gcc)?

不应该

- {{ compiler('c') }}
- {{ compiler('cxx') }}

添加这个?

该错误是由https://github.com/uber/h3-py/blob/master/.install.sh#L25引起的

command -v cc >/dev/null 2>&1 || { echo "cc required but not found."; exit 1; }
4

1 回答 1

0

我必须创建一个自定义 build.sh 文件:

where 而不是依赖 some $CCcmake自动使用正确的环境。https://github.com/conda-forge/staged-recipes/pull/8467/files

于 2019-06-10T06:40:27.173 回答