【问题标题】:problems with own package index自有包装索引的问题
【发布时间】:2012-02-09 09:44:54
【问题描述】:

我在我的网站上放了一些鸡蛋来创建自己的包索引:

http://mnowotka.kei.pl/eggs/

现在我想在我的构建配置中使用这个索引:

[buildout]
...
find-links = ...
             http://mnowotka.kei.pl/eggs/

使该索引中的一些包可用于我的本地 python 解释器:

[python]
...
eggs = ...
dashboard-common

但是,在执行 ./bin/buildout 时出现以下错误:

Couldn't find index page for 'dashboard-common' (maybe misspelled?)
Getting distribution for 'dashboard-dommon'.
While:
   Installing python.
   Getting distribution for 'dashboard-common'.
Error:
   Couldn't find a distribution for 'dashboard-common'.

有什么想法可以在这里出错吗?

【问题讨论】:

    标签: python buildout pypi


    【解决方案1】:

    你的鸡蛋被称为http://mnowotka.kei.pl/eggs/dashboard_common-0.5-py2.7.egg,所以带有下划线。仪表板_common。您正在使用破折号查询仪表板常见。

    这两个不匹配,这就是问题所在。查看您的 setup.py 并将包的名称调整为仪表板通用。包本身,即您导入的东西,可以保留 dashboard_common。

    【讨论】:

    • 什么 setup.py?我正在使用 buildout,没有 setup.py 文件。包本身也没有 setup.py 文件,所以我不知道如何应用您的建议。
    【解决方案2】:

    问题不在于破折号/下划线 - 事实上,鸡蛋名称中的下划线和扩建要求中的破折号是正确的。问题的根源在于鸡蛋名称 - “...py2.7 ...”当我使用python时,版本2.6所以biuldout不想安装这个。因为没有其他选择,所以我收到了这条消息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-08
      • 1970-01-01
      相关资源
      最近更新 更多