dev-python/wcsaxes: added python-3.6, and matplotlib environment to avoid importing Tk
authorSébastien Fabbro <bicatali@gentoo.org>
Mon, 26 Jun 2017 19:59:40 +0000 (19:59 +0000)
committerSébastien Fabbro <bicatali@gentoo.org>
Tue, 27 Jun 2017 02:48:48 +0000 (02:48 +0000)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-python/wcsaxes/wcsaxes-0.9.ebuild

index 9101ea4791bd71aae4162f779c809e31292a7492..898e26934a0d10398aa90e0caf4c36083e7ad7a5 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
 
 inherit distutils-r1 virtualx xdg-utils
 
@@ -33,6 +33,8 @@ PATCHES=(
 python_prepare_all() {
        # use system astropy-helpers instead of bundled one
        sed -i -e '/auto_use/s/True/False/' setup.cfg || die
+       echo "backend: Agg" > "${WORKDIR}"/matplotlibrc || die
+       export MATPLOTLIBRC="${WORKDIR}"
        xdg_environment_reset
        distutils-r1_python_prepare_all
 }