[英]Why does OSX fail on parsing the extras_require section of my setup.py file?
In my setup.py
file, I have the following: 在我的setup.py
文件中,我具有以下内容:
setup(
...
extras_require={
':python_version<="2.7"': [
'pydot>1.0',
],
':python_version>="3.5"': [
'pydot3k',
],
...
)
This works fine on Linux (on Travis CI) and Windows (on AppVeyor) but fails on OSX (also on Travis) with the error message: 在Linux(在Travis CI上)和Windows(在AppVeyor上)上可以正常工作,但在OSX(在Travis上)上也会失败,并显示错误消息:
error in mypackage setup command: Invalid environment marker: python_version<="2.7" mypackage设置命令中的错误:无效的环境标记:python_version <=“ 2.7”
What is the reason for this failure, and how can I avoid it? 失败的原因是什么,如何避免呢?
通过在我的.travis.yml
文件中添加- pip install --upgrade setuptools
解决了该问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.