当使用conda-build构建conda包并且我的代码使用纯python库时,我需要在meta.yaml文件中的bui



假设我有一个使用panda、numpy和matplotlib的python包。如果我查看他们的meta.yaml文件,我会在需求部分看到很多依赖项。例如,像make这样的编译器。我需要在我自己的meta.yaml包中命名构建和主机部分的所有依赖项吗?或者如果我只写:就足够了吗

Requirements:
Host: 
- python 3.8
Build: 
- python 3.8
Run:
- pandas
- numpy
- matplotlib

您可以指定包的python依赖项。这里有一个来自康达锻造厂的例子。

下面是一个虚构的例子:

package:
name: foobar
version: 0.1
source:
git_url: https://github.com/greenfish/foobar
git_tag: v0.1
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . --no-deps -vv
requirements:
host:
- python
- pip
run:
- python
- pandas >=1.0
- numpy
test:
imports:
- foobar
about:
home: http://greenfish-foobar.org
license: BSD-3-Clause
license_file: LICENSE.txt
summary: This package is for all your foobar needs

最新更新