[Distutils] Setuptools projects with '-' in their names (was Re: some kind of problem with setuptools 0.6a9)
Phillip J. Eby
pje at telecommunity.com
Sat Dec 31 19:39:39 CET 2005
At 11:26 PM 12/31/2005 +0800, Jeff Pitman wrote:
>What's ambiguous? Unless distutils allows `-' in Version, I believe Name
>and Version can easily be extractable without transposition. Do you have a
>specific example that's not obvious?
The distutils allow *anything* in both name and version; the arguments
aren't checked in any way. Take a quick skim through PyPI and see how many
packages have a '-' in either the name or the version number. I don't know
of any that do both.
An obvious example: CherryPy 2.1.0-rc2 had a '-' in the version number. I
know of at least one other project that uses '-rc' suffixes on its
versions, though its name escapes my recall at the moment. There are also
distutils projects that have numbers in their names - distinct from the
actual version number.
More information about the Distutils-SIG