Skip to content

Commit

Permalink
Sync recipes (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
ryanking13 and pre-commit-ci[bot] authored Jul 19, 2024
1 parent 56f46d2 commit f9e5569
Show file tree
Hide file tree
Showing 17 changed files with 22,397 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/matplotlib/test_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def test_font_manager(selenium):
# get fontlist from build
fontlist_built = json.loads(json.dumps(fm.FontManager(), cls=fm._JSONEncoder))

# reodering list to compare
# reordering list to compare
for list in ("afmlist", "ttflist"):
for fontlist in (fontlist_vendor, fontlist_built):
fontlist[list].sort(key=lambda x: x["fname"])
Expand Down
4 changes: 2 additions & 2 deletions packages/opencv-python/extras/detect_ffmpeg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ elseif(OPENCL_INCLUDE_DIR)
else()
set(__opencl_dirs "${OpenCV_SOURCE_DIR}/3rdparty/include/opencl/1.2")
endif()
# extra dependencies for buildin code (OpenCL dir is required for extensions like cl_d3d11.h)
# buildin HAVE_OPENCL is already defined through cvconfig.h
# extra dependencies for building code (OpenCL dir is required for extensions like cl_d3d11.h)
# building HAVE_OPENCL is already defined through cvconfig.h
list(APPEND __builtin_include_dirs "${__opencl_dirs}")

# extra dependencies for
Expand Down
2 changes: 1 addition & 1 deletion packages/pygame-ce/test_pygame.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_keyboard_input():

from auditwheel_emscripten import get_imports

dist_dir = pytest.pyodide_dist_dir
dist_dir = Path(pytest.pyodide_dist_dir) # type: ignore[attr-defined]
wheel_path = next(dist_dir.glob("pygame_ce-*.whl"))
assert wheel_path.exists()
all_libs = get_imports(wheel_path)
Expand Down
16 changes: 16 additions & 0 deletions packages/pyodide-unix-timezones/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package:
name: pyodide-unix-timezones
version: 1.0.0
top-level:
- unix_timezones
source:
url: https://files.pythonhosted.org/packages/f8/ab/637ae2629dc3e9ed7c192fb80f7fdefe311677138a5a5032872a115eb918/pyodide_unix_timezones-1.0.0-py3-none-any.whl
sha256: 9146c0eda703728571d8e3859043b0bb819c9ef45b9f32680234fade2e57b424
about:
home: https://github.com/joemarshall/pyodide-unix-timezones
PyPI: https://pypi.org/project/pyodide-unix-timezones
summary: Helper package to install unix timezone data on Pyodide
license: MIT
extra:
recipe-maintainers:
- joemarshall
9 changes: 8 additions & 1 deletion packages/scipy/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ source:
- patches/0005-Remove-test-modules-that-fails-to-build.patch
- patches/0006-Fix-fitpack.patch
- patches/0007-Fix-gees-calls.patch
- patches/0008-MAINT-linalg-Remove-id_dist-Fortran-files.patch
- patches/0009-Mark-mvndst-functions-recursive.patch
- patches/0001-Make-sreorth-recursive.patch

build:
cflags: |
Expand All @@ -50,6 +53,11 @@ build:
# pyodide-build/pyodide_build/_f2c_fixes.py.
script: |
set -x
git clone https://github.com/hoodmane/f2c.git --depth 1
(cd f2c/src && cp makefile.u makefile && sed -i "s/gram.c:/gram.c1:/" makefile && make)
export F2C_PATH=$(pwd)/f2c/src/f2c
echo F2C_PATH: $F2C_PATH
export NPY_BLAS_LIBS="-I$WASM_LIBRARY_DIR/include $WASM_LIBRARY_DIR/lib/libopenblas.so"
export NPY_LAPACK_LIBS="-I$WASM_LIBRARY_DIR/include $WASM_LIBRARY_DIR/lib/libopenblas.so"
Expand Down Expand Up @@ -106,7 +114,6 @@ requirements:
- openblas
executable:
- gfortran
- f2c

test:
imports:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 45a31145679c83f2719b6420f234d484b9459697 Mon Sep 17 00:00:00 2001
From: Hood Chatham <[email protected]>
Date: Fri, 18 Mar 2022 16:25:39 -0700
Subject: [PATCH 1/7] Fix dstevr in special/lapack_defs.h
Subject: [PATCH 1/9] Fix dstevr in special/lapack_defs.h

---
scipy/special/lapack_defs.h | 5 ++---
Expand Down
111 changes: 111 additions & 0 deletions packages/scipy/patches/0001-Make-sreorth-recursive.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
From e4d1a570fa8bd4c710e10400822f60232e6408eb Mon Sep 17 00:00:00 2001
From: Hood Chatham <[email protected]>
Date: Sat, 6 Jul 2024 22:33:51 +0200
Subject: [PATCH] Make sreorth recursive

---
complex16/zreorth.F | 6 +++---
complex8/creorth.F | 6 +++---
double/dreorth.F | 6 +++---
single/sreorth.F | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/scipy/sparse/linalg/_propack/PROPACK/complex16/zreorth.F b/scipy/sparse/linalg/_propack/PROPACK/complex16/zreorth.F
index ca74f7a..c447a6a 100644
--- a/scipy/sparse/linalg/_propack/PROPACK/complex16/zreorth.F
+++ b/scipy/sparse/linalg/_propack/PROPACK/complex16/zreorth.F
@@ -2,8 +2,8 @@ c
c Rasmus Munk Larsen, Stanford University, 1999, 2004.
c

- subroutine zreorth(n,k,V,ldv,vnew,normvnew,index,alpha,work,
- c iflag)
+ recursive subroutine zreorth(n,k,V,ldv,vnew,normvnew,index,alpha,
+ c work, iflag)
c
c Orthogonalize the N-vector VNEW against a subset of the columns of
c the N-by-K matrix V(1:N,1:K) using iterated classical or modified
@@ -103,7 +103,7 @@ c
c****************************************************************************
c

- subroutine zcgs(n,k,V,ldv,vnew,index,work)
+ recursive subroutine zcgs(n,k,V,ldv,vnew,index,work)

c Block Gram-Schmidt orthogonalization:
c FOR i= 1:l
diff --git a/scipy/sparse/linalg/_propack/PROPACK/complex8/creorth.F b/scipy/sparse/linalg/_propack/PROPACK/complex8/creorth.F
index cd87247..e657a89 100644
--- a/scipy/sparse/linalg/_propack/PROPACK/complex8/creorth.F
+++ b/scipy/sparse/linalg/_propack/PROPACK/complex8/creorth.F
@@ -2,8 +2,8 @@ c
c Rasmus Munk Larsen, Stanford University, 1999, 2004.
c

- subroutine creorth(n,k,V,ldv,vnew,normvnew,index,alpha,work,
- c iflag)
+ recursive subroutine creorth(n,k,V,ldv,vnew,normvnew,index,alpha,
+ c work, iflag)
c
c Orthogonalize the N-vector VNEW against a subset of the columns of
c the N-by-K matrix V(1:N,1:K) using iterated classical or modified
@@ -103,7 +103,7 @@ c
c****************************************************************************
c

- subroutine ccgs(n,k,V,ldv,vnew,index,work)
+ recursive subroutine ccgs(n,k,V,ldv,vnew,index,work)

c Block Gram-Schmidt orthogonalization:
c FOR i= 1:l
diff --git a/scipy/sparse/linalg/_propack/PROPACK/double/dreorth.F b/scipy/sparse/linalg/_propack/PROPACK/double/dreorth.F
index 841208a..fec923e 100644
--- a/scipy/sparse/linalg/_propack/PROPACK/double/dreorth.F
+++ b/scipy/sparse/linalg/_propack/PROPACK/double/dreorth.F
@@ -2,8 +2,8 @@ c
c Rasmus Munk Larsen, Stanford University, 1999, 2004.
c

- subroutine dreorth(n,k,V,ldv,vnew,normvnew,index,alpha,work,
- c iflag)
+ recursive subroutine dreorth(n,k,V,ldv,vnew,normvnew,index,alpha,
+ c work, iflag)
c
c Orthogonalize the N-vector VNEW against a subset of the columns of
c the N-by-K matrix V(1:N,1:K) using iterated classical or modified
@@ -103,7 +103,7 @@ c
c****************************************************************************
c

- subroutine dcgs(n,k,V,ldv,vnew,index,work)
+ recursive subroutine dcgs(n,k,V,ldv,vnew,index,work)

c Block Gram-Schmidt orthogonalization:
c FOR i= 1:l
diff --git a/scipy/sparse/linalg/_propack/PROPACK/single/sreorth.F b/scipy/sparse/linalg/_propack/PROPACK/single/sreorth.F
index 644d404..61b6698 100644
--- a/scipy/sparse/linalg/_propack/PROPACK/single/sreorth.F
+++ b/scipy/sparse/linalg/_propack/PROPACK/single/sreorth.F
@@ -2,8 +2,8 @@ c
c Rasmus Munk Larsen, Stanford University, 1999, 2004.
c

- subroutine sreorth(n,k,V,ldv,vnew,normvnew,index,alpha,work,
- c iflag)
+ recursive subroutine sreorth(n,k,V,ldv,vnew,normvnew,index,alpha,
+ c work, iflag)
c
c Orthogonalize the N-vector VNEW against a subset of the columns of
c the N-by-K matrix V(1:N,1:K) using iterated classical or modified
@@ -103,7 +103,7 @@ c
c****************************************************************************
c

- subroutine scgs(n,k,V,ldv,vnew,index,work)
+ recursive subroutine scgs(n,k,V,ldv,vnew,index,work)

c Block Gram-Schmidt orthogonalization:
c FOR i= 1:l
--
2.34.1

2 changes: 1 addition & 1 deletion packages/scipy/patches/0002-int-to-string.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d53ade3f03ba3557fd50fb38990d605f4ae7f8f1 Mon Sep 17 00:00:00 2001
From: Hood Chatham <[email protected]>
Date: Sat, 25 Dec 2021 18:04:18 -0800
Subject: [PATCH 2/7] int to string
Subject: [PATCH 2/9] int to string

f2c does not handle implicit casts of function arguments correctly. The msg
argument of `xerrwv` is defined to be an `int *`, and then implicitly cast
Expand Down
2 changes: 1 addition & 1 deletion packages/scipy/patches/0003-gemm_-no-const.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From e528227dd37c8b0512381992c222789a114e3169 Mon Sep 17 00:00:00 2001
From: Hood Chatham <[email protected]>
Date: Sat, 18 Dec 2021 11:41:15 -0800
Subject: [PATCH 3/7] gemm_ no const
Subject: [PATCH 3/9] gemm_ no const

cgemm, dgemm, sgemm, and zgemm are declared with `const` in slu_cdefs.h, but
other places don't have the cosnt causing compile errors.
Expand Down
2 changes: 1 addition & 1 deletion packages/scipy/patches/0004-make-int-return-values.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From a86a2304fd925f815bbb0e0753e46a7b863e2de2 Mon Sep 17 00:00:00 2001
From: Joe Marshall <[email protected]>
Date: Wed, 6 Apr 2022 21:25:13 -0700
Subject: [PATCH 4/7] make int return values
Subject: [PATCH 4/9] make int return values

The return values of f2c functions are insignificant in most cases, so often it
is treated as returning void, when it really should return int (values are
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From e21f33695da3275ec81b5f94685f0e4ac92c9ad5 Mon Sep 17 00:00:00 2001
From: Gyeongjae Choi <[email protected]>
Date: Mon, 30 Oct 2023 14:35:04 +0000
Subject: [PATCH 5/7] Remove test modules that fails to build
Subject: [PATCH 5/9] Remove test modules that fails to build

These are tests and they have both void vs int return value problems and implicit
function argument cast problems. Not worth fixing for tests.
Expand Down
2 changes: 1 addition & 1 deletion packages/scipy/patches/0006-Fix-fitpack.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From c784d3a1ee38da88943364de4ea847a3b9cd155f Mon Sep 17 00:00:00 2001
From: Hood Chatham <[email protected]>
Date: Tue, 30 Aug 2022 11:51:53 -0700
Subject: [PATCH 6/7] Fix fitpack
Subject: [PATCH 6/9] Fix fitpack

---
scipy/interpolate/fitpack/dblint.f | 9 ++++-----
Expand Down
2 changes: 1 addition & 1 deletion packages/scipy/patches/0007-Fix-gees-calls.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 8addc1da35bc63df651946ef14c723797a431e0c Mon Sep 17 00:00:00 2001
From: Hood Chatham <[email protected]>
Date: Mon, 26 Jun 2023 20:12:25 -0700
Subject: [PATCH 7/7] Fix gees calls
Subject: [PATCH 7/9] Fix gees calls

---
scipy/linalg/flapack_gen.pyf.src | 8 ++++----
Expand Down
Loading

0 comments on commit f9e5569

Please sign in to comment.