Éric Araujo added the comment: requires is supposed to take a Python module name (e.g. 'xml'), not a distribution name (e.g. 'PyXML') or a system package name ('rpm-build'). The hyphen is rejected because it’s not a valid character for a Python module name.
That said, requires should not be used, as there is no tool at all that supports it. distutils effectively has no support for dependencies. I have a bug open to recommend to people that they shouldn’t use requires. Third-party tools support dependencies on Python distributions, i.e. names like PyXML which are registered on PyPI. There is no way to depend on non-Python stuff for the moment with distutils. A custom command could call the system package manager, or users need to install it manually, or you can use buildout, or a configuration management system like puppet or chef. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17509> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com