[issue17509] Incorrect package version predicate parsing by distutils

2013-03-22 Thread Éric Araujo
Éric Araujo added the comment: Thank you for taking the time to report this. Fixing the docs to discourage using the broken requires seems even more important now. -- stage: -> committed/rejected ___ Python tracker

[issue17509] Incorrect package version predicate parsing by distutils

2013-03-22 Thread ILja Orlovs
ILja Orlovs added the comment: Whoops. Sorry. My bad than. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue17509] Incorrect package version predicate parsing by distutils

2013-03-21 Thread Éric Araujo
É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 u

[issue17509] Incorrect package version predicate parsing by distutils

2013-03-21 Thread ILja Orlovs
New submission from ILja Orlovs: When `requires` list is present in the `distutils.core.setup` object, each element of that list is being parsed by `VersionPredicate` object (located in the `distutils/versionpredicate.py` file). In its `__init__` method, the VersionPredicate uses `re_validPack