【发布时间】:2015-11-29 18:16:12
【问题描述】:
根据Dependency section in the setuptools manual git 可以在setup 和git+URL 的dependency_links 参数中指定存储库URL。然而,
cd /tmp
mkdir py-test
cd py-test
touch __init__.py
并使用
创建setup.py 文件
from setuptools import setup, find_packages
from pkg_resources import parse_version
setup(
name = "py-test",
version = "1.0",
packages = ["."],
dependency_links = [
"git+https://github.com/wxWidgets/wxPython.git"
],
install_requires = ["wxPython"],
)
在我运行python setup.py build && sudo setup.py install 时导致错误Download error on git+https://github.com/wxWidgets/wxPython.git: unknown url type: git+https -- Some packages may not be found!。
安装包python-setuptools-git没有帮助。
我在 Ubuntu 15.04 上使用 setuptools 18.2 和 python 2.7。
【问题讨论】:
标签: python git setuptools