Skip to content

Commit cb57075

Browse files
committed
Remove Numpy dependency
1 parent cf435b8 commit cb57075

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

setupext.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2144,7 +2144,6 @@ def get_extension(self):
21442144
]
21452145

21462146
ext = make_extension('matplotlib.backends._macosx', sources)
2147-
Numpy().add_flags(ext)
21482147
ext.extra_link_args.extend(['-framework', 'Cocoa'])
21492148
return ext
21502149

src/_macosx.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
#include <ApplicationServices/ApplicationServices.h>
33
#include <sys/socket.h>
44
#include <Python.h>
5-
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
6-
#include "numpy/arrayobject.h"
7-
#include "path_cleanup.h"
85

96
#define PYOSINPUTHOOK_REPETITIVE 1 /* Remove this once Python is fixed */
107

@@ -3218,7 +3215,6 @@ void init_macosx(void)
32183215
#endif
32193216
{
32203217
PyObject *module;
3221-
import_array();
32223218

32233219
if (PyType_Ready(&FigureCanvasType) < 0
32243220
|| PyType_Ready(&FigureManagerType) < 0

0 commit comments

Comments
 (0)