From: Justin Lecher Date: Thu, 26 Nov 2015 10:05:44 +0000 (+0100) Subject: dev-python/pandas: Use virtualx during doc building X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=81028e7bec0d02e1a25c566f74d78376d2441f2d;p=gentoo.git dev-python/pandas: Use virtualx during doc building Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=566756 Package-Manager: portage-2.2.25 Signed-off-by: Justin Lecher --- diff --git a/dev-python/pandas/pandas-0.17.1.ebuild b/dev-python/pandas/pandas-0.17.1.ebuild index 27eb12994652..8fd49dd1a785 100644 --- a/dev-python/pandas/pandas-0.17.1.ebuild +++ b/dev-python/pandas/pandas-0.17.1.ebuild @@ -7,6 +7,8 @@ EAPI=5 PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) PYTHON_REQ_USE="threads(+)" +VIRTUALX_REQUIRED="manual" + inherit distutils-r1 eutils flag-o-matic virtualx DESCRIPTION="Powerful data structures for data analysis and statistics" @@ -63,6 +65,7 @@ DEPEND="${MINIMAL_DEPEND} dev-python/setuptools[${PYTHON_USEDEP}] >=dev-python/cython-0.19.1[${PYTHON_USEDEP}] doc? ( + ${VIRTUALX_DEPEND} dev-python/beautifulsoup:4[${PYTHON_USEDEP}] dev-python/html5lib[${PYTHON_USEDEP}] dev-python/ipython[${PYTHON_USEDEP}] @@ -79,6 +82,7 @@ DEPEND="${MINIMAL_DEPEND} x11-misc/xclip ) test? ( + ${VIRTUALX_DEPEND} ${RECOMMENDED_DEPEND} ${OPTIONAL_DEPEND} dev-python/beautifulsoup:4[${PYTHON_USEDEP}] @@ -115,9 +119,10 @@ python_compile_all() { # To build docs the need be located in $BUILD_DIR, # else PYTHONPATH points to unusable modules. if use doc; then + VIRTUALX_COMMAND="${EPYTHON}" cd "${BUILD_DIR}"/lib || die cp -ar "${S}"/doc . && cd doc || die - LANG=C PYTHONPATH=. "${EPYTHON}" make.py html || die + LANG=C PYTHONPATH=. virtualmake make.py html || die fi }