diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-12-04 20:11:44 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-12-04 20:11:44 +0000 |
commit | f9b08affeb1c20f72ba70b95ae0a55e2397d3278 (patch) | |
tree | d043b35d051630f37cc9c8e1094a21b38747d17b | |
parent | 740f2699730c5f76af9200be703686681946418f (diff) | |
download | import-f9b08affeb1c20f72ba70b95ae0a55e2397d3278.tar.gz |
Hack to pip.find_deps to deal with pypi case insensitivity
-rwxr-xr-x | exts/pip.find_deps | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/exts/pip.find_deps b/exts/pip.find_deps index ce6a187..bd2cd23 100755 --- a/exts/pip.find_deps +++ b/exts/pip.find_deps @@ -179,6 +179,12 @@ def resolve_versions(specsets): for (proj_name, specset) in specsets.iteritems(): client = xmlrpclib.ServerProxy(PYPI_URL) + + # Bit of a hack to deal with pypi case insensitivity + new_proj_name = name_or_closest(client, proj_name) + logging.debug("Treating %s as %s" % (proj_name, new_proj_name)) + proj_name = new_proj_name + releases = find_releases(client, proj_name) logging.debug('Found %d releases of %s: %s' |