pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-matplotlib: turn off lto, progress



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Mon May 20 10:19:45 2024 +0200
Changeset:	6c460c8de5eab6baaa6066ce5c7bd98ee4000441

Modified Files:
	py-matplotlib/Makefile
	py-matplotlib/TODO

Log Message:
py-matplotlib: turn off lto, progress

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6c460c8de5eab6baaa6066ce5c7bd98ee4000441

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-matplotlib/Makefile |  2 ++
 py-matplotlib/TODO     | 56 +++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 55 insertions(+), 3 deletions(-)

diffs:
diff --git a/py-matplotlib/Makefile b/py-matplotlib/Makefile
index b9d0e1de41..c2242be94e 100644
--- a/py-matplotlib/Makefile
+++ b/py-matplotlib/Makefile
@@ -22,6 +22,7 @@ DEPENDS+=	${PYPKGPREFIX}-fonttools>=4.22.0:../../fonts/py-fonttools
 DEPENDS+=	${PYPKGPREFIX}-kiwisolver>=1.3.1:../../math/py-kiwisolver
 DEPENDS+=	${PYPKGPREFIX}-packaging>=20.0:../../devel/py-packaging
 DEPENDS+=	${PYPKGPREFIX}-pyparsing>=2.3.1:../../devel/py-pyparsing
+TEST_DEPENDS+=	${PYPKGPREFIX}-test>=0:../../devel/py-test
 
 USE_LANGUAGES=	c c++
 USE_TOOLS+=	pkg-config
@@ -30,6 +31,7 @@ PYTHON_VERSIONS_INCOMPATIBLE=	27 38
 
 WHEEL_ARGS+=	-Csetup-args="-Dsystem-freetype=true"
 WHEEL_ARGS+=	-Csetup-args="-Dsystem-qhull=true"
+WHEEL_ARGS+=	-Csetup-args="-Db_lto=false"
 
 # py-pybind11's bl3 defaults to PYTHON_FOR_BUILD_ONLY?=yes as it is primarily
 # used by packages that only have a build dependency on it.  Therefore we need
diff --git a/py-matplotlib/TODO b/py-matplotlib/TODO
index f1a0b8e360..90beba40a2 100644
--- a/py-matplotlib/TODO
+++ b/py-matplotlib/TODO
@@ -1,4 +1,54 @@
-Self tests fail with
-E   ImportError: /usr/pkg/lib/python3.12/site-packages/matplotlib/_path.so: Undefined PLT symbol "_ZN3agg17vpgen_segmentator7move_toEdd" (symnum = 5)
+collected 277 items / 2 errors
 
-https://github.com/matplotlib/matplotlib/issues/28260
+========================================================================================= ERRORS ==========================================================================================
+______________________________________________________________ ERROR collecting work/matplotlib-3.9.0/lib/matplotlib/testing ______________________________________________________________
+/usr/pkg/lib/python3.12/site-packages/_pytest/config/__init__.py:717: in _importconftest
+    mod = import_path(
+/usr/pkg/lib/python3.12/site-packages/_pytest/pathlib.py:614: in import_path
+    raise ImportPathMismatchError(module_name, module_file, path)
+E   _pytest.pathlib.ImportPathMismatchError: ('matplotlib.testing.conftest', '/usr/pkg/lib/python3.12/site-packages/matplotlib/testing/conftest.py', PosixPath('/usr/pkgsrc/wip/py-matplotl
+ib/work/matplotlib-3.9.0/lib/matplotlib/testing/conftest.py'))
+_______________________________________________________________ ERROR collecting work/matplotlib-3.9.0/lib/matplotlib/tests _______________________________________________________________
+/usr/pkg/lib/python3.12/importlib/__init__.py:90: in import_module
+    return _bootstrap._gcd_import(name[level:], package, level)
+<frozen importlib._bootstrap>:1387: in _gcd_import
+    ???
+<frozen importlib._bootstrap>:1360: in _find_and_load
+    ???
+<frozen importlib._bootstrap>:1310: in _find_and_load_unlocked
+    ???
+<frozen importlib._bootstrap>:488: in _call_with_frames_removed
+    ???
+<frozen importlib._bootstrap>:1387: in _gcd_import
+    ???
+<frozen importlib._bootstrap>:1360: in _find_and_load
+    ???
+<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
+    ???
+<frozen importlib._bootstrap>:935: in _load_unlocked
+    ???
+<frozen importlib._bootstrap_external>:995: in exec_module
+    ???
+<frozen importlib._bootstrap>:488: in _call_with_frames_removed
+    ???
+/usr/pkg/lib/python3.12/site-packages/matplotlib/tests/__init__.py:6: in <module>
+    raise OSError(
+E   OSError: The baseline image directory does not exist. This is most likely because the test data is not installed. You may need to install matplotlib from source to get the test data.
+==================================================================================== warnings summary =====================================================================================
+work/matplotlib-3.9.0/galleries/examples/text_labels_and_annotations/usetex_baseline_test.py:25
+  /usr/pkgsrc/wip/py-matplotlib/work/matplotlib-3.9.0/galleries/examples/text_labels_and_annotations/usetex_baseline_test.py:25: UserWarning: FigureCanvasAgg is non-interactive, and thus
+cannot be shown
+    plt.show()
+
+work/matplotlib-3.9.0/galleries/examples/units/evans_test.py:87
+  /usr/pkgsrc/wip/py-matplotlib/work/matplotlib-3.9.0/galleries/examples/units/evans_test.py:87: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
+    plt.show()
+
+-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
+================================================================================= short test summary info =================================================================================
+ERROR work/matplotlib-3.9.0/lib/matplotlib/testing - _pytest.pathlib.ImportPathMismatchError: ('matplotlib.testing.conftest', '/usr/pkg/lib/python3.12/site-packages/matplotlib/testing/con
+ftest.py', PosixPath('/usr/pkgsrc/wip/py-matplot...
+ERROR work/matplotlib-3.9.0/lib/matplotlib/tests - OSError: The baseline image directory does not exist. This is most likely because the test data is not installed. You may need to instal
+l matplotlib from source to get the test data.
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+============================================================================== 2 warnings, 2 errors in 0.81s ==============================================================================


Home | Main Index | Thread Index | Old Index