如何在 conda-forge 中处理通用轮子但依赖项不是通用的

how to deal in conda-forge with universal wheels but dependencies which are not universal

我想在 conda-forge 中为 https://github.com/GoogleCloudPlatform/google-auth-library-python 创建一个配方。

在setup.cfg中:

   [bdist_wheel]
   universal = 1

但它有一个依赖项 rsa:

conda search -c conda-forge rsa

rsa 3.4.2 py27_0 conda-forge
3.4.2 py34_0 conda-forge
3.4.2 py35_0 conda-forge
3.4.2 py36_0 conda-forge

我该如何处理? 我可以把线

noarch: python

还是会有问题?

是的,您可以为任何在所有平台和 Python 版本上具有相同要求的纯 Python 包创建一个 noarch: python 包。这意味着配方不能使用预处理选择器。

依赖关系不纯Python这一事实与包的状态无关。

Architecture independent packages 上的 conda 文档部分有更多详细信息,没有 noarch: python 个包。