我采取了以下步骤:
首先- 创建一个名为的目录pln41
和一个名为pln41
. (我在 virtualenv 中安装了 PIL。)
第二- 进入目录并运行:
wget http://svn.plone.org/svn/plone/buildouts/plone-coredev/branches/4.1/bootstrap.py
第三- 创建以下buildout.cfg
文件:
[buildout]
extends = http://dist.plone.org/release/4.1/versions.cfg
parts = instance
[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
eggs = Plone
第四- 运行`python bootstrap.py --distribute
该程序产生以下输出并崩溃:
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.30.tar.gz
Extracting in /var/folders/xk/5xt9s5vd4bqd731qdkmxkxyr0000gn/T/tmpLrULV3
Now working in /var/folders/xk/5xt9s5vd4bqd731qdkmxkxyr0000gn/T/tmpLrULV3/distribute-0.6.30
Building a Distribute egg in /var/folders/xk/5xt9s5vd4bqd731qdkmxkxyr0000gn/T/tmp54ZJQK
/var/folders/xk/5xt9s5vd4bqd731qdkmxkxyr0000gn/T/tmp54ZJQK/distribute-0.6.30-py2.7.egg
While:
Initializing.
Error: The directory:
'/Users/Jon/dev/pln41/~/.buildout/extends'
to be used as a download cache doesn't exist.
现在,我的主目录中确实有一个.builtout/
目录。问题在于,将~
标志放在路径中间,就像引导程序试图做的那样,会产生问题。如果我尝试cd /Users/Jon/dev/pln41/~/.buildout/
从任何地方运行,我会得到“没有这样的文件或目录”,但如果我运行,cd ~/.buildout/
那么一切正常。为什么引导程序创建此路径:/Users/Jon/dev/pln41/~/.buildout/extends?