I have a python project that depends on another project that depended on python-dateutil. When I tried to python setup.py install my project, it resolved the dateutil dependency to python-dateutil 2.0, which doesn't work at all on python 2.x. The only way I found to fix the problem and make my project installable is to make my project directly depend on python-dateutil<2, even though it doesn't directly use dateutil at all if its dependency doesn't.
It looks like distutils2 / PEP 345 has a Requires-Python field to specify which versions of python the project is compatible.
- Is distutils2 the only way to specify this information for your project, and
- Will pypi or something similar be able to make use of this information, so that if I'm installing a project on python 2.x, then the dependency resolution will ignore python-dateutil 2?