Kar*_*ter 3 python git setuptools
根据setuptools手册 git存储库中的依赖关系部分,可以在with 的dependency_links参数中指定URL .然而,setupgit+URL
cd /tmp
mkdir py-test
cd py-test
touch __init__.py
Run Code Online (Sandbox Code Playgroud)
并创建一个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"],
)
Run Code Online (Sandbox Code Playgroud)
Download error on git+https://github.com/wxWidgets/wxPython.git: unknown url type: git+https -- Some packages may not be found!我跑的时候会导致错误python setup.py build && sudo setup.py install.
安装包python-setuptools-git没有帮助.
我在Ubuntu 15.04上使用setuptools18.2和python2.7.
对于VCS结帐,您还应附加#egg = project-version以确定应使用哪个包结帐
所以修复只是将#egg=wxPython片段附加到末尾:
dependency_links = [
"git+https://github.com/wxWidgets/wxPython.git#egg=wxPython"
]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1435 次 |
| 最近记录: |