Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-python/pip/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST pip-25.0.1.tar.gz 1950850 BLAKE2B 9d4aa5a122fe0c9b1c35a7acb6bfbd0f8ff387771807c5f8fe3ee3d038e74f6ea2614a60f0d4e1fa58f7667a060985f89c0652cddff43585a30daa9373f77dde SHA512 3fef96aa0662236b9226f345e1c3a49293697d6d0ad277c5cb047f5c0332294dff0a28c128603547fc2dde20f938f4117314599056e93a2f3e1f78d9bf70dec3
DIST pip-25.1.1.tar.gz 1940155 BLAKE2B bab86a3116f770b842d1049cdd0f24baf61e633a14a730715dd621e010149d3877ddcd44a12f635802b8e48ac1aaa622a32a451ef01e76073d76fc6711ce330d SHA512 aa607dc778188700c30086ac03970f991ebcf00308003555552d57ee9edfad25caf78d2ae94260ed3df39c7338eb51d3101950bfe79c800f882031cb31eebe72
49 changes: 49 additions & 0 deletions dev-python/pip/pip-25.1.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3+ )
DISTUTILS_USE_SETUPTOOLS="rdepend"
inherit bash-completion-r1 distutils-r1

DESCRIPTION="The PyPA recommended tool for installing Python packages."
HOMEPAGE="None https://pypi.org/project/pip/"
SRC_URI="https://files.pythonhosted.org/packages/59/de/241caa0ca606f2ec5fe0c1f4261b0465df78d786a38da693864a116c37f4/pip-25.1.1.tar.gz -> pip-25.1.1.tar.gz"

DEPEND=""
IUSE="vanilla"
RESTRICT="test"
SLOT="0"
LICENSE="MIT"
KEYWORDS="*"
S="${WORKDIR}/pip-25.1.1"

python_prepare_all() {
if ! use vanilla; then
# Running pip without --target, --prefix, --root, or --user will result
# in packages being installed systemwide. This has a tendency to break
# python-exec if setuptools gets installed or upgraded.
sed -e 's|options.upgrade_strategy|options.upgrade_strategy\n\n if not options.use_user_site and not options.target_dir and not options.root_path and not options.prefix_path:\n raise CommandError("(Gentoo) Please run pip with the --user option to avoid breaking python-exec")\n|' \
-i src/pip/_internal/commands/install.py || die
fi
distutils-r1_python_prepare_all
}
python_install_all() {
# Prevent dbus auto-launch
# https://bugs.gentoo.org/692178
export DBUS_SESSION_BUS_ADDRESS="disabled:"
local DOCS=( AUTHORS.txt docs/html/**/*.rst )
distutils-r1_python_install_all
if [ "$PN" == "pip" ]; then
COMPLETION="${T}"/completion.tmp
# 'pip completion' command embeds full $0 into completion script, which confuses
# 'complete' and causes QA warning when running as "${PYTHON} -m pip".
# This trick sets correct $0 while still calling just installed pip.
local pipcmd='import sys; sys.argv[0] = "pip"; __file__ = ""; from pip._internal.cli.main import main; sys.exit(main())'
${EPYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die
newbashcomp "${COMPLETION}" ${PN}
${EPYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die
insinto /usr/share/zsh/site-functions
newins "${COMPLETION}" _pip
fi
}
Loading