如何编写python安装脚本以要求特定版本的pyparsing

如何编写python安装脚本以要求特定版本的pyparsing,python,distutils,pyparsing,Python,Distutils,Pyparsing,我有一个setup.py脚本,它知道对pyparsing的依赖性,并且实际上会安装它。但它正在获取最新版本2.0.0,它(显然)与Python2.x不兼容。看起来我需要能够将安装程序限制为pyparsing的1.5.x版本,但是找不到一种方法来告诉setup.py脚本这种限制,或者如果可能的话 我的setup.py正在使用setuptools.setup,并在install\u requires部分列出pyparsing。不install\u requires=['pyparsing>=1.5可

我有一个setup.py脚本,它知道对pyparsing的依赖性,并且实际上会安装它。但它正在获取最新版本2.0.0,它(显然)与Python2.x不兼容。看起来我需要能够将安装程序限制为pyparsing的1.5.x版本,但是找不到一种方法来告诉setup.py脚本这种限制,或者如果可能的话


我的setup.py正在使用setuptools.setup,并在install\u requires部分列出pyparsing。

install\u requires=['pyparsing>=1.5可能重复的@sr2222:几乎;需要在5后面加一个逗号。