我遭受了一个奇怪的点子行为。打电话
pip install git+https://github.com/username/repo
通常有效,但在某些包上它以异常方式失败
Downloading/unpacking git+git://github.com/artscoop/django-inplaceedit
Cloning git://github.com/artscoop/django-inplaceedit to /tmp/pip-rl1_7G-build
Running setup.py egg_info for package from git+git://github.com/artscoop/django-inplaceedit
Installing collected packages: django-inplaceedit
Running setup.py install for django-inplaceedit
error: Error: setup script specifies an absolute path:
/tmp/pip-rl1_7G-build/AUTHORS.rst
setup() arguments must *always* be /-separated paths relative to the
setup.py directory, *never* absolute paths.
Complete output from command /home/steve/virtualenv/project/bin/python -c "import setuptools;__file__='/tmp/pip-rl1_7G-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-vVDBRe-record/install-record.txt --single-version-externally-managed --install-headers /home/steve/virtualenv/project/include/site/python2.7:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/inplaceeditform
copying inplaceeditform/urls.py -> build/lib.linux-x86_64-2.7/inplaceeditform
copying inplaceeditform/views.py -> build/lib.linux-x86_64-2.7/inplaceeditform
copying inplaceeditform/perms.py -> build/lib.linux-x86_64-2.7/inplaceeditform
copying inplaceeditform/__init__.py -> build/lib.linux-x86_64-2.7/inplaceeditform
copying inplaceeditform/fields.py -> build/lib.linux-x86_64-2.7/inplaceeditform
copying inplaceeditform/adaptors.py -> build/lib.linux-x86_64-2.7/inplaceeditform
copying inplaceeditform/commons.py -> build/lib.linux-x86_64-2.7/inplaceeditform
copying inplaceeditform/tag_utils.py -> build/lib.linux-x86_64-2.7/inplaceeditform
creating build/lib.linux-x86_64-2.7/inplaceeditform/templatetags
copying inplaceeditform/templatetags/__init__.py -> build/lib.linux-x86_64-2.7/inplaceeditform/templatetags
copying inplaceeditform/templatetags/inplace_edit.py -> build/lib.linux-x86_64-2.7/inplaceeditform/templatetags
running egg_info
creating django_inplaceedit.egg-info
writing django_inplaceedit.egg-info/PKG-INFO
writing top-level names to django_inplaceedit.egg-info/top_level.txt
writing dependency_links to django_inplaceedit.egg-info/dependency_links.txt
writing manifest file 'django_inplaceedit.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest template 'MANIFEST.in'
writing manifest file 'django_inplaceedit.egg-info/SOURCES.txt'
error: Error: setup script specifies an absolute path:
/tmp/pip-rl1_7G-build/AUTHORS.rst
setup() arguments must *always* be /-separated paths relative to the
setup.py directory, *never* absolute paths.
----------------------------------------
Command /home/steve/virtualenv/project/bin/python -c "import setuptools;__file__='/tmp/pip-rl1_7G-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-vVDBRe-record/install-record.txt --single-version-externally-managed --install-headers /home/steve/virtualenv/project/include/site/python2.7 failed with error code 1 in /tmp/pip-rl1_7G-build
Storing complete log in /home/steve/.pip/pip.log
setuptools-git 显然已经安装了,我发现关于这个错误的信息为零,尽管我已经被这个问题击中了十几次。我找不到为什么它抱怨有绝对路径,因为它是生成它们的那个。