commit:     4bf936bd6670845bcc0f6cc1f5828dbba9d31f69
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 29 19:55:34 2016 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Dec 29 19:56:03 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bf936bd

dev-python/astropy: fixed for doc generation
Missed dependencies and astropy-helpers local
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=604034

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-python/astropy/astropy-1.3.ebuild | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/dev-python/astropy/astropy-1.3.ebuild 
b/dev-python/astropy/astropy-1.3.ebuild
index d85184f..8a49c8c 100644
--- a/dev-python/astropy/astropy-1.3.ebuild
+++ b/dev-python/astropy/astropy-1.3.ebuild
@@ -36,9 +36,11 @@ DEPEND="${RDEPEND}
                media-gfx/graphviz
                dev-libs/libxml2[${PYTHON_USEDEP}]
                dev-python/h5py[${PYTHON_USEDEP}]
+               dev-python/jplephem[${PYTHON_USEDEP}]
                dev-python/matplotlib[${PYTHON_USEDEP}]
+               dev-python/pillow[${PYTHON_USEDEP}]
                dev-python/pytest[${PYTHON_USEDEP}]
-               dev-python/sphinx[${PYTHON_USEDEP}]
+               dev-python/sphinx-gallery[${PYTHON_USEDEP}]
                dev-python/wcsaxes[${PYTHON_USEDEP}]
                sci-libs/scipy[${PYTHON_USEDEP}]
        )
@@ -60,7 +62,7 @@ PATCHES=(
 python_prepare_all() {
        export mydistutilsargs="--offline"
        export ASTROPY_USE_SYSTEM_PYTEST=True
-       rm -r ${PN}_helpers || die
+       #rm -r ${PN}_helpers || die
        cp "${FILESDIR}"/astropy-ply.py astropy/extern/ply.py || die
        rm -r cextern/{expat,erfa,cfitsio,wcslib} || die
        sed -i -e '/auto_use/s/True/False/' setup.cfg || die
@@ -74,10 +76,13 @@ python_prepare_all() {
 
 python_compile_all() {
        if use doc; then
+               mkdir -p examples
+               touch examples/README.txt || die
+               python_setup
                VARTEXFONTS="${T}"/fonts \
                        MPLCONFIGDIR="${BUILD_DIR}" \
                        PYTHONPATH="${BUILD_DIR}"/lib \
-                       esetup.py build_sphinx
+                       esetup.py build_docs --no-intersphinx
        fi
 }
 

Reply via email to