diff --git a/inc/python b/inc/python index 9938f98545..2e4eff02ea 100644 --- a/inc/python +++ b/inc/python @@ -407,6 +407,12 @@ function use_library_from_git { function lib_installed_from_git { local name=$1 local safe_name + # TODO(mordred) This is a special case for python-openstacksdk, where the + # repo name and the pip name do not match. We should either add systemic + # support for providing aliases, or we should rename the git repo. + if [[ $name == 'python-openstacksdk' ]] ; then + name=openstacksdk + fi safe_name=$(python -c "from pkg_resources import safe_name; \ print(safe_name('${name}'))") # Note "pip freeze" doesn't always work here, because it tries to