Tob*_*ias 7 plone buildout plone-4.x
我有一个Plone站点(大约4.2.4,从version.txt根目录中的一个说明),我想更新到最新版本(我发现了这个方法)(截至目前4.3.4); 我继承了过多的固定版本,这些版本没有记录,可能已经过时了.
当注释掉我versions.cfg,使用http://dist.plone.org/release/4.3-latest/versions.cfg替代和重新运行buildout用-vvv,我得到:
Develop: '.../src/collective.mathjax'
in: '.../src/collective.mathjax'
/tmp/tmpbXsnpD -q develop -mxN -d .../develop-eggs/tmp2yhe9ubuild
...
Installing 'zc.recipe.egg'.
We have the best distribution that satisfies 'zc.recipe.egg<2dev'.
Picked: zc.recipe.egg = 1.3.2
...
There is a version conflict.
We already have: zc.recipe.egg 1.3.2.
While:
Installing.
Getting section test.
Initializing section test.
Installing recipe zc.recipe.testrunner.
Run Code Online (Sandbox Code Playgroud)
因此似乎有一些要求的子2版本zc.recipe.egg,但我找不到它.(在我versions.cfg看来它是固定的2.0.1- 曾经工作,令人惊讶.)
我搜索了树find和grep,寻找rc.recipe.egg在version*.cfg和setup.py文件,但我无法找到任何东西,但在我的项目的根目录.我甚至搜索了下面的每个文件.../src/collective.mathjax,但没有成功.
我怎么能找出这种依赖呢?谢谢!
基本上可以在三个地方寻找版本固定:
1.) PyPi 上发布的 Egg 的需求文件,就像 Luca Fabbri 指出的那样,你可以像这样搜索 pin:
grep -r --include=requires.txt "dependency.to.search.for" path/to/eggs-cache
Run Code Online (Sandbox Code Playgroud)
2.)development-eggs的setup.py文件,类似可搜索:
grep -r --include=setup.py "dependency.to.search.for" path/to/dev-eggs-cache
Run Code Online (Sandbox Code Playgroud)
3.)[versions]配置文件的 - 部分,在这种情况下,version.cfg通过其 - 选项拉入更多版本配置,extends拉出的配置也可能通过 指定更多配置extends。
你很幸运,令人钦佩的 M. v. Rees 分享了一段关于如何获取所有 Plone 版本的所有固定的片段: https://gist.github.com/mauritsvanrees/99cb4a25b622479e7dc3
| 归档时间: |
|
| 查看次数: |
248 次 |
| 最近记录: |