Buildout不喜欢我的系统范围内的Distribute安装,并且拒绝运行:
plone@s15447224:~/mybuildout$ python bootstrap.py
Creating directory '/home/plone/mybuildout/bin'.
Creating directory '/home/plone/mybuildout/parts'.
Creating directory '/home/plone/mybuildout/eggs'.
Creating directory '/home/plone/mybuildout/develop-eggs'.
Getting distribution for 'distribute==0.6.14'.
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /usr/lib/python2.6/dist-packages
Non-egg installation
Removing elements out of the way...
Already patched.
/usr/lib/python2.6/dist-packages/setuptools.egg-info already patched.
After install bootstrap.
Creating /usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg-info
error: /usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg-info: Permission denied
An error occurred when trying to install distribute 0.6.14. Look above this message for any errors that were output by easy_install.
While:
Bootstrapping.
Getting distribution for 'distribute==0.6.14'.
Error: Couldn't install: distribute 0.6.14
有什么方法可以告诉buildout安装自己的Distribute,而不会干扰系统范围的Python安装吗?
我了解virtualenv。但是,仅仅安装virtualenv来使构建变得快乐似乎是一个过大的杀伤力。必须有其他方法。
Python 2.6。克隆4.1。 Ubuntu 10.4。
最佳答案
似乎是Distribution_setup.py中的错误,当前的解决方法是使用setuptools bootstrap.py
编辑:在https://bitbucket.org/tarek/distribute/issue/231/bootstrappy-tries-to-modify-global-python#comment-1254375中的更多详细信息
编辑2:固定http://pypi.python.org/pypi/distribute/0.6.27#id2