Install this version:
emerge -a =dev-python/sympy-1.14.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.14.0 | 8 | amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86 ~x64-macos | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
inherit distutils-r1 virtualx
DESCRIPTION="Computer Algebra System in pure Python"
HOMEPAGE="
https://www.sympy.org/
https://github.com/sympy/sympy/
https://pypi.org/project/sympy/
"
# pypi sdist misses some files, notably top-level conftest.py, as of 1.12.1_rc1
SRC_URI="
https://github.com/sympy/sympy/archive/${PV/_/}.tar.gz
-> ${P/_/}.gh.tar.gz
"
S=${WORKDIR}/${P/_/}
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86 ~x64-macos"
IUSE="imaging ipython latex mathml pdf png pyglet symengine"
RDEPEND="
>=dev-python/mpmath-1.1.0[${PYTHON_USEDEP}]
imaging? ( dev-python/pillow[${PYTHON_USEDEP}] )
ipython? (
$(python_gen_cond_dep '
dev-python/ipython[${PYTHON_USEDEP}]
' 3.12 3.13 3.14)
)
latex? (
virtual/latex-base
dev-texlive/texlive-fontsextra
png? ( app-text/dvipng )
pdf? ( app-text/ghostscript-gpl )
)
mathml? ( dev-python/lxml[${PYTHON_USEDEP}] )
pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] )
symengine? ( dev-python/symengine[${PYTHON_USEDEP}] )
"
BDEPEND="
test? (
dev-python/hypothesis[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
EPYTEST_XDIST=1
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
# fix the version number
sed -i -e "/__version__/s:\".*\":\"${PV}\":" sympy/release.py || die
}
src_test() {
virtx distutils-r1_src_test
}
python_test() {
local EPYTEST_DESELECT=(
# require old version of antlr4, also deprecated
# https://github.com/sympy/sympy/issues/27026
sympy/parsing/tests/test_autolev.py
sympy/parsing/tests/test_latex.py
# Deprecation warnings turned failures
# https://github.com/sympy/sympy/pull/28158
sympy/geometry/tests/test_polygon.py::test_do_poly_distance
sympy/plotting/tests/test_plot.py::test_plot_and_save_6
sympy/integrals/tests/test_integrals.py::test_integrate_poly_definite
)
nonfatal epytest --veryquickcheck ||
die -n "Tests failed with ${EPYTHON}"
}
python_install_all() {
local DOCS=( AUTHORS README.md )
distutils-r1_python_install_all
}
Manage flags for this package:
euse -i <flag> -p dev-python/sympy |
euse -E <flag> -p dev-python/sympy |
euse -D <flag> -p dev-python/sympy
>=dev-python/mpmath-1.1.0[${PYTHON_USEDEP}] imaging? ( dev-python/pillow[${PYTHON_USEDEP}] ) ipython? ( $(python_gen_cond_dep ' dev-python/ipython[${PYTHON_USEDEP}] ' 3.12 3.13 3.14) ) latex? ( virtual/latex-base dev-texlive/texlive-fontsextra png? ( app-text/dvipng ) pdf? ( app-text/ghostscript-gpl ) ) mathml? ( dev-python/lxml[${PYTHON_USEDEP}] ) pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] ) symengine? ( dev-python/symengine[${PYTHON_USEDEP}] )
test? ( dev-python/hypothesis[] )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | sympy-1.14.0.gh.tar.gz | 7911587 bytes | https://github.com/sympy/sympy/archive/1.14.0.tar.gz |