Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 295227 Details for
Bug 393679
dev-python/numpy-1.6.1: Add patch for python3.*
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
numpy-1.6.1-import_umath.patch
numpy-1.6.1-import_umath.patch (text/plain), 2.19 KB, created by
Johan Bergström
on 2011-12-08 22:21:12 UTC
(
hide
)
Description:
numpy-1.6.1-import_umath.patch
Filename:
MIME Type:
Creator:
Johan Bergström
Created:
2011-12-08 22:21:12 UTC
Size:
2.19 KB
patch
obsolete
>http://projects.scipy.org/numpy/ticket/1919 >https://github.com/numpy/numpy/commit/4dac50bf1faf2c8189c277ec8f11ead506c243b1 >https://github.com/numpy/numpy/commit/418f070fc67d1ea2b6eae3259e9dcf7a980bbaaf > >--- numpy/core/code_generators/generate_ufunc_api.py >+++ numpy/core/code_generators/generate_ufunc_api.py >@@ -75,14 +75,53 @@ > return 0; > } > >-#define import_umath() { UFUNC_NOFPE if (_import_umath() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.umath failed to import"); return; }} >- >-#define import_umath1(ret) { UFUNC_NOFPE if (_import_umath() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.umath failed to import"); return ret; }} >- >-#define import_umath2(msg, ret) { UFUNC_NOFPE if (_import_umath() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, msg); return ret; }} >- >-#define import_ufunc() { UFUNC_NOFPE if (_import_umath() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.umath failed to import"); }} >+#if PY_VERSION_HEX >= 0x03000000 >+#define NUMPY_IMPORT_UMATH_RETVAL NULL >+#else >+#define NUMPY_IMPORT_UMATH_RETVAL >+#endif > >+#define import_umath() \ >+ do {\ >+ UFUNC_NOFPE\ >+ if (_import_umath() < 0) {\ >+ PyErr_Print();\ >+ PyErr_SetString(PyExc_ImportError,\ >+ "numpy.core.umath failed to import");\ >+ return NUMPY_IMPORT_UMATH_RETVAL;\ >+ }\ >+ } while(0) >+ >+#define import_umath1(ret) \ >+ do {\ >+ UFUNC_NOFPE\ >+ if (_import_umath() < 0) {\ >+ PyErr_Print();\ >+ PyErr_SetString(PyExc_ImportError,\ >+ "numpy.core.umath failed to import");\ >+ return ret;\ >+ }\ >+ } while(0) >+ >+#define import_umath2(ret, msg) \ >+ do {\ >+ UFUNC_NOFPE\ >+ if (_import_umath() < 0) {\ >+ PyErr_Print();\ >+ PyErr_SetString(PyExc_ImportError, msg);\ >+ return ret;\ >+ }\ >+ } while(0) >+ >+#define import_ufunc() \ >+ do {\ >+ UFUNC_NOFPE\ >+ if (_import_umath() < 0) {\ >+ PyErr_Print();\ >+ PyErr_SetString(PyExc_ImportError,\ >+ "numpy.core.umath failed to import");\ >+ }\ >+ } while(0) > > #endif > """
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 393679
: 295227 |
295325