mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/statsmodels: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST statsmodels-0.14.3.tar.gz 20354488 BLAKE2B 113e90f7091197a5561e311bc033dfc3d9d28732fbcbae4fce13ec58f16db63ec1e25c54e411a8ff04d059f3f2df7c45dc484918235653df4d1f809cc40260af SHA512 c7b8684be83b179edcdbed7703005d054a1f16b9731add69b5079a62e5e858bef87c34e00575580fd48ef80cc9108d405edec9e6a2cf3eb3e5e8f7fed53f8fca
|
||||
DIST statsmodels-0.14.4.tar.gz 20354802 BLAKE2B c721c5b2e7b22ad1be10099627230f7344f966a335f37757dc6bb622fedcb1e84a7d708ee25bfdde64357394e059567e41dad19fc5b1daeb3d5ee29e52a3b2af SHA512 db3bd19b8b47af453ad6fbd24449a621895e4237bbc8b7813810306748c32a3fbf005387a0e1e8db550c9c4a59666bdd50aeb49e24f0ecb86619bc90f166f5f9
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 optfeature pypi
|
||||
|
||||
DESCRIPTION="Statistical computations and models for use with SciPy"
|
||||
HOMEPAGE="
|
||||
https://www.statsmodels.org/stable/index.html
|
||||
https://github.com/statsmodels/statsmodels/
|
||||
https://pypi.org/project/statsmodels/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~loong ~riscv ~amd64-linux"
|
||||
IUSE="examples"
|
||||
|
||||
# NB: upstream requires building with numpy-2 but supports 1.x
|
||||
# at runtime
|
||||
DEPEND="
|
||||
>=dev-python/numpy-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/scipy-1.8[${PYTHON_USEDEP}]
|
||||
"
|
||||
RDEPEND="
|
||||
>=dev-python/numpy-1.22.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-21.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pandas-1.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/patsy-0.5.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/scipy-1.8[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
${DEPEND}
|
||||
>=dev-python/cython-3.0.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools-scm-8[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs \
|
||||
'dev-python/ipykernel' \
|
||||
'dev-python/jupyter-client' \
|
||||
'dev-python/matplotlib' \
|
||||
'dev-python/nbconvert' \
|
||||
'dev-python/numpydoc'
|
||||
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
export VARTEXFONTS="${T}"/fonts
|
||||
export MPLCONFIGDIR="${T}"
|
||||
printf -- 'backend : Agg\n' > "${MPLCONFIGDIR}"/matplotlibrc || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x MKL_NUM_THREADS=1
|
||||
local -x OMP_NUM_THREADS=1
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
|
||||
cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
|
||||
epytest statsmodels
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples; then
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
dodoc -r examples
|
||||
fi
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Plotting functionality" "dev-python/matplotlib"
|
||||
}
|
||||
Reference in New Issue
Block a user