Skip to content

Commit

Permalink
dev-python/ensurepip-setuptools: Use pypi.eclass
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Feb 5, 2023
1 parent b0301ea commit 4b2c68e
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@

EAPI=8

MY_PN=${PN#ensurepip-}
WHL=${MY_PN}-${PV}-py3-none-any.whl
inherit pypi

DESCRIPTION="Shared setuptools wheel for ensurepip Python module"
HOMEPAGE="https://pypi.org/project/setuptools/"
SRC_URI="
https://files.pythonhosted.org/packages/py3/${MY_PN::1}/${MY_PN}/${WHL}
"
SRC_URI="$(pypi_wheel_url "${PN#ensurepip-}")"
S=${DISTDIR}

LICENSE="MIT"
Expand All @@ -23,5 +20,5 @@ RDEPEND="

src_install() {
insinto /usr/lib/python/ensurepip
doins "${WHL}"
doins "${A}"
}

0 comments on commit 4b2c68e

Please sign in to comment.