From 6afd45afe64eb14fc9e433d233d76fbacf203263 Mon Sep 17 00:00:00 2001 From: charles lai Date: Sun, 15 Sep 2024 06:58:13 -0700 Subject: [PATCH] Remove numpy from nextjs-flask to fix broken builds (#947) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Description pip fails to install this dependency on Python 3.12 * Stacktrace: https://gist.github.com/sup/f0ff6eb90c03fbe7bd4329b0202dbbb8 * Issue: https://github.com/vercel/examples/issues/946 While fixing the root cause of the error is certainly one way of going about it, numpy is not even used for the hello-world Flask app this ships with. To simplify things, this commit removes numpy as a dependency entirely. ### Demo URL https://automaton-seven.vercel.app/ ### Type of Change - [ ] New Example - [x] Example updates (Bug fixes, new features, etc.) - [ ] Other (changes to the codebase, but not to examples) ### New Example Checklist Not applicable - [ ] 🛫 `npm run new-example` was used to create the example - [ ] 📚 The template wasn't used but I carefuly read the [Adding a new example](https://github.com/vercel/examples#adding-a-new-example) steps and implemented them in the example - [ ] 📱 Is it responsive? Are mobile and tablets considered? --- python/nextjs-flask/requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/python/nextjs-flask/requirements.txt b/python/nextjs-flask/requirements.txt index 2a281c3d7..95fef4eb6 100644 --- a/python/nextjs-flask/requirements.txt +++ b/python/nextjs-flask/requirements.txt @@ -1,2 +1 @@ -numpy==1.24.3 Flask==3.0.3