Closed srid closed 13 years ago
I agree, but I'm not sure I understand how that code helps. I looked into it and there is a to_filename too, but neither of them fixes the "Django" vs. "django" problem AFAICT.
E.g. safe_name ('django') returns "django", which doesn't help…
Perhaps you could do just what easy_install does, i.e. request http://pypi.python.org/simple/django/ which automatically redirects to /Django/
best way to do this is using setuptools/Distribute:
pkg_resources.safe_name(name.lower())