Setup.py requires MySQL-python

I am writing a setup.pyscript and want to specify a dependency on a MySQL package:

requires=['requests', 'mock', 'GitPython', 'MySQL-python']

But MySQL-pythonit looks illegal for the installation tool, because it thinks that there -should be a version after , and it throws this error:

ValueError: expected list in brackets: '-python'

What can i do here?

Environment: Python 2.7.3; accurate 32

+5
source share
2 answers

From the distutils documentation :

To indicate that any version of a module or package is required, the string must consist entirely of the name of the module or package. Examples including "mymodule" and "xml.parsers.expat".

MySQL-python _mysql:

requires=['requests', 'mock', 'GitPython', '_mysql']
+1

distutils. requires PEP, , - , distutils. , , . pip ; require_dist setup_requires; buildout - ..

0

All Articles