我在 Pypi 上发布了一个示例 python 包使用轮子。我想使用 this 在我的 Conda channel 上发布包教程。
但是,当我运行时:conda skeleton pypi rutgerhofstepythonpackage
我收到以下错误:
Warning, the following versions were found for rutgerhofstepythonpackage
0.0.1
0.0.2
0.1.1
Using 0.1.1
Use --version to specify a different version.
Leaving build/test directories:
Work: /opt/anaconda3/conda-bld/skeleton_1523284768777/work
Test: /opt/anaconda3/conda-bld/skeleton_1523284768777/test_tmp
Leaving build/test environments:
Test: source activate /opt/anaconda3/conda-bld/skeleton_1523284768777/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho
Build: source activate /opt/anaconda3/conda-bld/skeleton_1523284768777/_build_env
Error: No source urls found for rutgerhofstepythonpackage
最佳答案
Conda Skeleton 需要源代码分发。将轮子上传到 pypi 是不够的。
除了构建分发python setup.py bdist_wheel --universal
创建源分发python setup.py sdist
在上传到 PyPi 之前。我在尝试使用此 tutorial 手动创建 meta.yaml 文件时发现了这一点
关于 conda 骨架失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49735655/