openbsd-ports/graphics/py-matplotlib/patches/patch-setupext_py
daniel cd65e83104 update py-matplotlib to 3.6.3
- switches from previously bundled qhull to depending on math/qhull
- no more jquery-ui
- tests turned off until someone has time to make them work

ok sthen@
2023-01-16 17:09:43 +00:00

20 lines
808 B
Plaintext

Index: setupext.py
--- setupext.py.orig
+++ setupext.py
@@ -435,6 +435,7 @@ class Matplotlib(SetupPackage):
ext = Extension(
"matplotlib._qhull", ["src/_qhull_wrapper.cpp"],
define_macros=[("MPL_DEVNULL", os.devnull)])
+ ext.include_dirs.extend(['${PREFIX}/include'])
add_numpy_flags(ext)
Qhull.add_flags(ext)
yield ext
@@ -448,6 +449,7 @@ class Matplotlib(SetupPackage):
libraries={"linux": ["dl"], "win32": ["comctl32", "psapi"],
"cygwin": ["comctl32", "psapi"]}.get(sys.platform, []),
extra_link_args={"win32": ["-mwindows"]}.get(sys.platform, []))
+ ext.include_dirs.extend(['${X11BASE}/include'])
add_numpy_flags(ext)
add_libagg_flags(ext)
yield ext