dev-python/astropy: fixed for doc generation
authorSébastien Fabbro <bicatali@gentoo.org>
Thu, 29 Dec 2016 19:55:34 +0000 (19:55 +0000)
committerSébastien Fabbro <bicatali@gentoo.org>
Thu, 29 Dec 2016 19:56:03 +0000 (19:56 +0000)
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

index d85184f42f3e7c66c6785dd532d6fc4a2cc2186b..8a49c8cee75dbe429b768e64228e48878012a84c 100644 (file)
@@ -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
 }