diff options
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 } |