dev-python/naima: add addpredict workaround during install

Bug hard to reproduce.
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=604012

Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
Sébastien Fabbro
2016-12-29 18:05:40 +00:00
parent ea4e17b3a5
commit 1716512bc1
2 changed files with 9 additions and 4 deletions

View File

@@ -13,6 +13,7 @@
Markov Chain Monte Carlo.
</longdescription>
<upstream>
<remote-id type="github">zblz/naima</remote-id>
<remote-id type="pypi">naima</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -20,22 +20,26 @@ DOCS=( README.rst )
RDEPEND="
dev-python/astropy[${PYTHON_USEDEP}]
dev-python/corner[${PYTHON_USEDEP}]
dev-python/emcee[${PYTHON_USEDEP}]
>=dev-python/numpy-1.10[${PYTHON_USEDEP}]"
dev-python/h5py[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/astropy-helpers[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? (
dev-python/h5py[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}] )"
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
DOCS=( README.rst CHANGES.rst )
python_prepare_all() {
sed -e '/auto_use/s/True/False/' -i setup.cfg || die
xdg_environment_reset
# issues during install time (bug #604012)
addpredict /proc/mtrr
addpredict /sys/devices/system/cpu/
distutils-r1_python_prepare_all
}