diff --git a/math/py-sympy/Makefile b/math/py-sympy/Makefile index 18574e3983e2..b10d3110ce5d 100644 --- a/math/py-sympy/Makefile +++ b/math/py-sympy/Makefile @@ -1,24 +1,25 @@ PORTNAME= sympy PORTVERSION= 1.14.0 +PORTREVISION= 1 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= wen@FreeBSD.org COMMENT= Python Library For Symbolic Mathematics WWW= https://sympy.org/ LICENSE= BSD3CLAUSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpmath>=1.1.0:math/py-mpmath@${PY_FLAVOR} USES= python USE_PYTHON= distutils concurrent autoplist pytest NO_ARCH= yes OPTIONS_DEFINE= PYGLET PYGLET_DESC= Enable plotting support PYGLET_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyglet1>=1.1.2:graphics/py-pyglet1@${PY_FLAVOR} .include diff --git a/math/py-sympy/files/patch-setup.py b/math/py-sympy/files/patch-setup.py new file mode 100644 index 000000000000..ed074bf6621a --- /dev/null +++ b/math/py-sympy/files/patch-setup.py @@ -0,0 +1,13 @@ +-- mpmath is at 1.4 which causes breakage in misc/py-torchvision and potentially other ports + +--- setup.py.orig 2026-03-14 18:43:16 UTC ++++ setup.py +@@ -321,7 +321,7 @@ if __name__ == '__main__': + }, + # Set upper bound when making the release branch. + install_requires=[ +- 'mpmath >= 1.1.0, < 1.4', ++ 'mpmath >= 1.1.0', + ], + py_modules=['isympy'], + packages=['sympy'] + modules + tests,