diff options
Diffstat (limited to 'dev-python/zope-security/zope-security-6.1.ebuild')
-rw-r--r-- | dev-python/zope-security/zope-security-6.1.ebuild | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-python/zope-security/zope-security-6.1.ebuild b/dev-python/zope-security/zope-security-6.1.ebuild index b5a8e2c..ca6131a 100644 --- a/dev-python/zope-security/zope-security-6.1.ebuild +++ b/dev-python/zope-security/zope-security-6.1.ebuild @@ -16,6 +16,7 @@ S="${WORKDIR}/${PN/-/\.}-${PV}" LICENSE="ZPL" SLOT="0" KEYWORDS="~amd64" +IUSE="doc" RDEPEND=" dev-python/pytz[${PYTHON_USEDEP}] @@ -39,7 +40,7 @@ RDEPEND=" " DEPEND="${RDEPEND}" -distutils_enable_sphinx docs +#distutils_enable_sphinx docs dev-python/repoze-sphinx-autointerface dev-python/zope-interface distutils_enable_tests unittest src_prepare() { @@ -53,6 +54,13 @@ python_compile() { find "${BUILD_DIR}" -name '*.pth' -delete || die } +python_compile_all() { + echo "__path__ = __import__('pkgutil').extend_path(__path__, __name__)" > \ + "${BUILD_DIR}/install$(python_get_sitedir)/zope/__init__.py" || die + build_sphinx docs + rm "${BUILD_DIR}/install$(python_get_sitedir)/zope/__init__.py" +} + python_test() { cd "${BUILD_DIR}/install$(python_get_sitedir)" || die distutils_write_namespace zope |