Does PyPy support gmpy2?
Asked Answered
P

1

0

It seems from the discussions issue #60 and issue #40 that PyPy couldn't build gmpy before. All I intend to use currently is the probable prime is_prime code which is conveniently in gmpy2. I get the impression that the more calls to gmpy2 means less efficiency for PyPy. Is using gmpy2 possible currently, or do I have to use something like GMPY_CFFI?

The error I get when using pip in PyPy is cannot open include file 'mpir.h'

Permeable answered 4/2, 2016 at 7:19 Comment(0)
J
3

You should use GMPY_CFFI. gmpy and gmpy2 rely on too many internal details of CPython to be ported to PyPy.

Note: I maintain gmpy2.

Jaimie answered 4/2, 2016 at 16:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.