在构建和运行中,以及梅塔.亚马尔要求部分?

2024-09-27 23:22:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在构建一个使用numpy作为导入的纯Python conda包。你知道吗

基于Conda的meta.yaml documentation,我并不完全清楚在requirements:部分中python和numpy应该包含在哪里。你知道吗

  • 他们被包含在build:小节中吗?你知道吗
  • 如果是这样,它们是否也必须在run:部分复制?你知道吗

如果两个答案都是肯定的,那么requirements:部分将如下所示:

requirements:
  build:
    - python 
    - numpy
  run:
    - python
    - numpy
    - otherpackage1
    - otherpackage2
    - ...

是这样吗?还是重复是多余的?或者可以省略build:部分,而python和numpy只能包含在run:部分中?你知道吗


Tags: run答案buildnumpyyamldocumentationcondameta

热门问题