dev-python/namespace-repoze: readd py2
This commit is contained in:
parent
0de7324889
commit
db75a3169f
1
dev-python/namespace-repoze/Manifest
Normal file
1
dev-python/namespace-repoze/Manifest
Normal file
@ -0,0 +1 @@
|
||||
EBUILD namespace-repoze-1.ebuild 751 BLAKE2B e16fe765c974853efd8c984a59720450f7d589a4dbfc50ced1e85c5d5d53008cd3c5d9baa9ebd8f3965f9975c8255f3e6e99587294e78939eb6cf5c3ef15a477 SHA512 b34f8c85b7d8f9129bfe8b596773bfb01243b1cd9db0fee204ef94f3d13834754c1d525d2367756f40303a67047444353e23e0d91abcc10da7642cf464088aea
|
33
dev-python/namespace-repoze/namespace-repoze-1.ebuild
Normal file
33
dev-python/namespace-repoze/namespace-repoze-1.ebuild
Normal file
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
|
||||
inherit python-r1
|
||||
|
||||
DESCRIPTION="Namespace package declaration for repoze"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ~ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
${PYTHON_DEPS}"
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
src_unpack() {
|
||||
mkdir -p "${S}"/repoze || die
|
||||
cat > "${S}"/repoze/__init__.py <<-EOF || die
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
EOF
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_foreach_impl python_domodule repoze
|
||||
}
|
Loading…
Reference in New Issue
Block a user