我有setup.py
和requirements.txt
文件,在req文件中,我把我的包需要的所有包放在install_requires=read_from_file()
选项下使用。在
现在我的setup.py
还有两个选项在使用:
setup_requires=['rst2pdf', 'pytest', 'sphinx==1.3.1', 'sphinx-epytext'],
tests_require=['pytest-cov', 'pytest-xdist', 'pytest-pep8', 'pytest-cache'],
setup_requires
用于安装阶段需要的包,test_require
用于测试阶段。在
我在安装rst2pdf
时遇到一个问题,结果是(trace back just for show):
问题是,如果我使用pip install rst2pdf
,它工作得很好,并且安装了包含所有依赖项的包。在
由于我不想将包添加到req文件中,我的问题是:
调用pip install <package>
与在我的setup.py
使用setup_requires=['package]
有什么不同?怎样才能让他们表现得一样呢?在
我的工作空间:python 2.7、windows 7、pip 1.5.6、setuptools 15.2
目前没有回答
相关问题 更多 >
编程相关推荐