# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python2_7 ) PYTHON_REQ_USE="ssl(+),threads(+)" inherit distutils-r1 pypi shell-completion SETUPTOOLS_PV="44.0.0" WHEEL_PV="0.34.2" DESCRIPTION="Installs python packages -- replacement for easy_install" HOMEPAGE=" https://pip.pypa.io/en/stable/ https://pypi.org/project/pip/ https://github.com/pypa/pip/" SRC_URI=" https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz test? ( $(pypi_wheel_url setuptools ${SETUPTOOLS_PV} py2.py3) $(pypi_wheel_url wheel ${WHEEL_PV} py2.py3) ) " # PyPI archive does not have tests, so we need to download from GitHub. # setuptools & wheel .whl files are required for testing, exact version is not very important. LICENSE="MIT" SLOT="python2" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" IUSE="test vanilla" # disable-system-install patch breaks tests RESTRICT="mirror !test? ( test )" RDEPEND=" >=dev-python/setuptools-39.2.0:python2[${PYTHON_USEDEP}] ! "${COMPLETION}" || die newbashcomp "${COMPLETION}" ${PN}2 ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die newzshcomp "${COMPLETION}" _pip2 }