dev-python/pip: Update shell completion generation
authorJustin Lecher <jlec@gentoo.org>
Mon, 28 Dec 2015 10:10:10 +0000 (11:10 +0100)
committerJustin Lecher <jlec@gentoo.org>
Mon, 28 Dec 2015 13:34:28 +0000 (14:34 +0100)
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/pip/pip-7.1.2.ebuild

index 7f0d706350c68c205a4af241472588a24652c882..b281787c36b01646c7b6a07afab1b61cf9d856ca 100644 (file)
@@ -58,10 +58,10 @@ python_install_all() {
 
        COMPLETION="${T}"/completion.tmp
 
-       "${PYTHON}" pip/__init__.py completion --bash > "${COMPLETION}" || die
+       "${PYTHON}" -m pip completion --bash > "${COMPLETION}" || die
        newbashcomp "${COMPLETION}" ${PN}
 
-       "${PYTHON}" pip/__init__.py completion --zsh > "${COMPLETION}" || die
+       "${PYTHON}" -m pip completion --zsh > "${COMPLETION}" || die
        insinto /usr/share/zsh/site-functions
        newins "${COMPLETION}" _pip
 }