【问题标题】:conda build requirement: add package from specific channelconda 构建要求:从特定渠道添加包
【发布时间】:2014-09-01 17:51:16
【问题描述】:

是否可以向 conda 配方添加来自特定 binstar 频道的构建要求?

例如,我想为 ffmpeg-devel 创建一个配方,它需要 7zip。但似乎只有来自trent 频道的 7za 有效。我尝试输入trent/7zatrent 7za,但它们都不起作用。

package:
name: ffmpeg-dev
version: 2.3.3

source:
fn: ffmpeg-20140827-git-8c1b942-win64-dev.7z
url: http://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-20140827-git-8c1b942-win64-dev.7z [win]
sha1: 1aaf45274229cba7fe723a4118ca243e77cb4587

requirements:
build:
    - trent/7za
    - ffmpeg-dev
run:
    - ffmpeg-dev

about:
home: https://www.ffmpeg.org/
license: "Various (see Copyright file from the aspell6-en source)"
summary: "A complete, cross-platform solution to record, convert and stream au

【问题讨论】:

    标签: conda binstar


    【解决方案1】:

    这还不可能,但这是我们想要添加的功能。现在,您需要在构建之前将通道添加到配置中,例如

    conda config --add channels trent 
    

    【讨论】:

    • 跟踪此功能有问题吗?
    猜你喜欢
    • 1970-01-01
    • 2018-06-01
    • 2018-10-03
    • 2021-01-18
    • 1970-01-01
    • 2021-11-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多