meta.yaml:如何从包装列表中需要一个
有没有办法在meta.yaml文件中编码要求部分,其中任何一个选择列表中的一个包都可以满足要求?在这里,不同的软件包提供了相同所需的功能,并且没有理由指定特定选择。
就我而言,Conda Svn软件包和Conga-Forge Subversion套餐提供了相同的工具,要么很好,但是类似的情况是需要PIL或PILOW的地方,因此我想拥有类似的东西:
requirements:
run:
- python>=3.7
- pil or pillow
这是否有可能?
Is there a way to code a requirements section in a meta.yaml file where any one package from a list of choices will satisfy the requirement? This is where different packages provide the same needed capability and there is no reason to specify a particular choice.
In my case the conda svn package and the conga-forge subversion package provide the same tool and either is fine, but an analogous case would be where either PIL or Pillow would be required so I want to have something like:
requirements:
run:
- python>=3.7
- pil or pillow
Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最接近的事情是 。这将需要为每个变体发布单独的构建。搁置此处的示例是人为的(
pil
已过时,仅适用于conda上的Python 2.7),但这将是conda_build_config.yaml
meta的东西。 yaml
The closest thing to this is build variants. This would entail issuing a separate build for each variant. Setting aside that the example here is contrived (
pil
is outdated and only available for Python 2.7 on Conda), but it'd be somethingconda_build_config.yaml
meta.yaml