假设我有一个使用pandas、numpy和matplotlib的python包。如果我查看他们的meta.yaml文件,我会在requirements部分看到很多依赖项。例如像make这样的编译器。我是否需要在自己的meta.yaml包中命名构建和主机部分中的所有这些依赖项,或者只需编写:
Requirements:
Host:
- python 3.8
Build:
- python 3.8
Run:
- pandas
- numpy
- matplotlib发布于 2021-04-07 21:01:07
您可以只指定包的python依赖项。Here's an example from conda-forge.
下面是一个虚构的例子:
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 needshttps://stackoverflow.com/questions/66981493
复制相似问题