diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-16 13:07:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-16 13:07:24 +0100 |
commit | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (patch) | |
tree | 464c922e949c7e4d5d891fb2cdda5daee5612537 /dev-python/zope-exceptions/zope-exceptions-4.5.ebuild | |
parent | e68d405c5d712af4387159df07e226217bdda049 (diff) |
gentoo resync : 16.04.2022
Diffstat (limited to 'dev-python/zope-exceptions/zope-exceptions-4.5.ebuild')
-rw-r--r-- | dev-python/zope-exceptions/zope-exceptions-4.5.ebuild | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/dev-python/zope-exceptions/zope-exceptions-4.5.ebuild b/dev-python/zope-exceptions/zope-exceptions-4.5.ebuild index 8d9aedf70fd5..912c26d00ee7 100644 --- a/dev-python/zope-exceptions/zope-exceptions-4.5.ebuild +++ b/dev-python/zope-exceptions/zope-exceptions-4.5.ebuild @@ -12,7 +12,8 @@ MY_P=${P/-/.} DESCRIPTION="General purpose exceptions for Zope packages" HOMEPAGE=" https://pypi.org/project/zope.exceptions/ - https://github.com/zopefoundation/zope.exceptions/" + https://github.com/zopefoundation/zope.exceptions/ +" SRC_URI="mirror://pypi/${PN::1}/${PN/-/.}/${MY_P}.tar.gz" S="${WORKDIR}/${MY_P}" @@ -21,16 +22,24 @@ SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" RDEPEND=" - dev-python/namespace-zope[${PYTHON_USEDEP}] - dev-python/zope-interface[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( dev-python/zope-testrunner[${PYTHON_USEDEP}] )" + dev-python/zope-interface[${PYTHON_USEDEP}] +" -distutils_enable_tests setup.py +distutils_enable_tests unittest -python_install_all() { - distutils-r1_python_install_all +src_prepare() { + # strip rdep specific to namespaces + sed -i -e "/'setuptools'/d" setup.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}" -name '*.pth' -delete || die +} - # remove .pth files since dev-python/namespace-zope handles the ns - find "${D}" -name '*.pth' -delete || die +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + distutils_write_namespace zope + eunittest } |