python-gmpy2/gmpy2-import.patch
2018-06-02 07:09:22 -06:00

15 lines
629 B
Diff

# Fix import issues. See git commit cb0d591e8bffd7833db8c26fed81f43952732c0d.
--- gmpy2/__init__.pxd.orig 2018-05-18 11:28:00.000000000 -0600
+++ gmpy2/__init__.pxd 2018-05-18 11:33:32.444069344 -0600
@@ -1 +1 @@
-from gmpy2 cimport *
+from gmpy2.gmpy2 cimport *
--- gmpy2/__init__.py.orig 2018-05-18 11:28:00.000000000 -0600
+++ gmpy2/__init__.py 2018-05-18 11:34:01.852674784 -0600
@@ -1 +1,5 @@
from .gmpy2 import *
+# Internal variables/functions are not imported by * above.
+# These are used by some python level functions and are needed
+# at the top level.
+from .gmpy2 import _C_API, _mpmath_normalize, _mpmath_create