summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-10-21 08:59:59 +0200
committerJustin Lecher <jlec@gentoo.org>2015-10-21 15:40:24 +0200
commit6102281775b7a5df59baf5886ea6f5fdfaad8350 (patch)
treea830d322523381bd124f296b399af8c73cfbe5a6 /dev-python/pandas
parentdev-python/ipython: Add python3.5 support (diff)
downloadgentoo-6102281775b7a5df59baf5886ea6f5fdfaad8350.tar.gz
gentoo-6102281775b7a5df59baf5886ea6f5fdfaad8350.tar.bz2
gentoo-6102281775b7a5df59baf5886ea6f5fdfaad8350.zip
dev-python/pandas: Add python3.5 support
* Use PYTHON_USEDEP correctly * Don't set HAME=. for tests GitHub: pydata/pandas/11297 pydata/pandas/11298 Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/pandas')
-rw-r--r--dev-python/pandas/pandas-0.17.0.ebuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/dev-python/pandas/pandas-0.17.0.ebuild b/dev-python/pandas/pandas-0.17.0.ebuild
index 96b90f0cc6e9..fd2ce8ebb943 100644
--- a/dev-python/pandas/pandas-0.17.0.ebuild
+++ b/dev-python/pandas/pandas-0.17.0.ebuild
@@ -4,7 +4,7 @@
EAPI=5
-PYTHON_COMPAT=( python2_7 python3_{3,4} )
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1 eutils flag-o-matic virtualx
@@ -39,14 +39,13 @@ DEPEND="${CDEPEND}
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
>=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}]
- dev-python/openpyxl[${PYTHON_USEDEP}]
>=dev-python/pytables-3.0.0[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/rpy[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}]
>=dev-python/sphinx-1.2.1[${PYTHON_USEDEP}]
- dev-python/xlrd[$(python_gen_usedep 'python2_7')]
- dev-python/xlwt[$(python_gen_usedep 'python2_7')]
+ dev-python/xlrd[${PYTHON_USEDEP}]
+ dev-python/xlwt[${PYTHON_USEDEP}]
x11-misc/xclip
)
test? (
@@ -66,8 +65,8 @@ RDEPEND="${CDEPEND}
dev-python/pytz[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}]
excel? (
- dev-python/xlrd[$(python_gen_usedep 'python2_7')]
- dev-python/xlwt[$(python_gen_usedep 'python2_7')]
+ dev-python/xlrd[${PYTHON_USEDEP}]
+ dev-python/xlwt[${PYTHON_USEDEP}]
|| (
dev-python/xlsxwriter[${PYTHON_USEDEP}]
>=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}]
@@ -85,6 +84,11 @@ python_prepare_all() {
# Prevent un-needed download during build
sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/source/conf.py || die
+ # https://github.com/pydata/pandas/issues/11299
+ sed \
+ -e 's:testOdArray:disable:g' \
+ -i pandas/io/tests/test_json/test_ujson.py || die
+
distutils-r1_python_prepare_all
}
@@ -103,7 +107,7 @@ python_test() {
[[ -n "${FAST_PANDAS}" ]] && test_pandas+=' and not slow'
pushd "${BUILD_DIR}"/lib > /dev/null
VIRTUALX_COMMAND="nosetests"
- PYTHONPATH=. MPLCONFIGDIR=. HOME=. \
+ PYTHONPATH=. MPLCONFIGDIR=. \
virtualmake --verbosity=3 -A "${test_pandas}" pandas
popd > /dev/null
}