【问题标题】:buildout cfg requires modules that are already installedbuildout cfg 需要已安装的模块
【发布时间】:2014-09-19 15:40:08
【问题描述】:

我正在尝试运行:

sudo bin/buildout

我收到一条消息说:

mr.developer: Queued 'django-accessibillity' for checkout.
mr.developer: Queued 'django-registration' for checkout.
mr.developer: Queued 'ivc-formutils' for checkout.

并要求我输入存储库的密码。但是问题是这个存储库不再存在,我无法从那里下载文件。因此,我从其他来源获得了这些模块并安装了它们。但是当我运行 buildout 安装时仍然要求我提供相同的模块。

是否有可能通过构建来识别我已经拥有这些模块,或者是否有其他解决方法?

【问题讨论】:

    标签: python version-control buildout egg


    【解决方案1】:

    mr.developer 默认情况下会在构建运行时更新您的存储库。您可以使用[buildout] 部分中的auto-checkout 选项禁用此功能:

    [buildout]
    extensions = mr.developer
    # ...
    auto-checkout = false
    

    但是,如果您有一个不再存在于存储库中的签出,请将您的源转换为 fs 类型,而不是 gitsvn 或它们之前的任何存储库类型。

    查找[sources] 部分(除非在[buildout] 部分中设置了sources 键,在这种情况下将命名正确的部分)。它会有如下条目:

    [sources]
    django-accessibillity = git https://some.gitserver.com/some/repository.git
    django-registration = svn https://some.svnserver.com/some/svn/repo/trunk
    

    改为使用fs <name-of-package>

    [sources]
    django-accessibillity = fs django-accessibillity
    django-registration = fs django-registration
    

    【讨论】:

    • mr.developer:包 'django-accessibillity' 的目录不存在。即使我可以导入 django-accessibillity 也没问题。
    • @Marijus:由于 Python 包实际上不能包含 - 字符,您确定该目录实际上没有使用不同的名称,例如 django_accessibility 吗?默认的sources-dirsrc,因此请检查您的src 子目录,除非该键在[buildout] 部分中设置为其他值。
    猜你喜欢
    • 1970-01-01
    • 2010-09-20
    • 2021-09-17
    • 2023-01-23
    • 2019-09-27
    • 1970-01-01
    • 2015-10-19
    相关资源
    最近更新 更多