Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update matplotlib from 3.9.4 to 3.10.0 [emscripten-3.1.73] #1583

Open
wants to merge 2 commits into
base: emscripten-3.1.73
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions recipes/recipes_emscripten/matplotlib/patches/static-cast.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From 1b919a42a6be3090d4553cafff8f0c0f9e221d60 Mon Sep 17 00:00:00 2001
From: Ian Thomas <ianthomas23@gmail.com>
Date: Tue, 14 Jan 2025 14:34:34 +0000
Subject: [PATCH] Static cast patch

---
src/_backend_agg_wrapper.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/_backend_agg_wrapper.cpp b/src/_backend_agg_wrapper.cpp
index 269e2aaa9e..2bad7f4d0b 100644
--- a/src/_backend_agg_wrapper.cpp
+++ b/src/_backend_agg_wrapper.cpp
@@ -250,12 +250,12 @@ PYBIND11_MODULE(_backend_agg, m, py::mod_gil_not_used())

.def_buffer([](RendererAgg *renderer) -> py::buffer_info {
std::vector<py::ssize_t> shape {
- renderer->get_height(),
- renderer->get_width(),
+ static_cast<py::ssize_t>(renderer->get_height()),
+ static_cast<py::ssize_t>(renderer->get_width()),
4
};
std::vector<py::ssize_t> strides {
- renderer->get_width() * 4,
+ static_cast<py::ssize_t>(renderer->get_width() * 4),
4,
1
};
--
2.39.3 (Apple Git-146)
5 changes: 3 additions & 2 deletions recipes/recipes_emscripten/matplotlib/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
context:
name: matplotlib
version: 3.9.4
version: 3.10.0

source:
- url: https://github.com/matplotlib/matplotlib/archive/v${{ version }}.tar.gz
sha256: a29f8bab72f81df9077480e6b55394a17effd329d0ff1524bb5bc570734e7c54
sha256: 825919da8957bbc19cec35caf8663b734d34af72a0b040c43b7d8c1b76fdcab7
patches:
- patches/fix-threading-and-font-cache.patch
- patches/static-cast.patch

build:
number: 0
Expand Down
Loading