Skip to content

Commit

Permalink
math/py-cdecimal: deprecate and mark BROKEN with Python 3.9
Browse files Browse the repository at this point in the history
Note: upstream does not support it after Python-3.2, and a fast C
implementation of the decimal module (_decimal) is bundled with Python.

PR:		261870
  • Loading branch information
thierry-FreeBSD committed Feb 12, 2022
1 parent 974b9f8 commit 92ba87a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion math/py-cdecimal/Makefile
Expand Up @@ -13,10 +13,19 @@ COMMENT= Fast drop-in replacement for the Decimal module
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

DEPRECATED= upstream does not support it after Python-3.2

USES= python:3.6-3.8
USE_PYTHON= distutils autoplist

.include <bsd.port.pre.mk>

.if ${PYTHON_VER} == 3.9
# Note: a fast C implementation of the decimal module (_decimal) is bundled with Python
BROKEN= no member named 'tp_print' in 'struct _typeobject'
.endif

post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cdecimal*.so

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 92ba87a

Please sign in to comment.