Skip to content

Commit caea41e

Browse files
authored
Merge branch 'main' into http_status
2 parents 9d2593b + a64e534 commit caea41e

8 files changed

+205
-128
lines changed

docs/project/changelog.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ myst:
2222
{pr}`4889`
2323

2424
- {{ Enhancement }} `HttpStatusError` now store their the corresponding request
25-
`status`, `status_message` and `url` {pr}`4974`.
25+
`status`, `status_message` and `url`
26+
{pr}`4974`.
27+
28+
- {{ Breaking }} Shared libraries are now loaded locally. This means that packages that
29+
depend on shared libraries link to the shared libraries explicitly.
30+
{pr}`4876`
2631

2732
- {{ Enhancement }} Added implementation to abort `pyfetch` and `FetchResponse`
2833
manually or automatically.

emsdk/patches/0006-Load-dependent-libs-globally.patch

-35
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
From 4a3956693056b3ad4f6541589c5ab44df7a7fc39 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?=
3+
4+
Date: Wed, 12 Jun 2024 20:10:35 +0200
5+
Subject: [PATCH 6/6] Make RTLD_LOCAL work correctly for preloaded DSOs
6+
(#21985)
7+
8+
Copied from: https://github.com/emscripten-core/emscripten/pull/21985
9+
This patch can be removed when updating Emscripten version to >= 3.1.62
10+
11+
Follow-up to commit c9a5e63c, for the FS.createPreloadedFile()
12+
case.
13+
14+
Make sure loadWebAssemblyModule() and loadDynamicLibrary()
15+
are called with a valid 'localScope' object when invoked
16+
from the .so file type preload handler.
17+
---
18+
src/library_dylink.js | 4 ++--
19+
test/test_core.py | 46 +++++++++++++++++++++++++++++++++++++++++++
20+
2 files changed, 48 insertions(+), 2 deletions(-)
21+
22+
diff --git a/src/library_dylink.js b/src/library_dylink.js
23+
index 965b119a4..211f4030c 100644
24+
--- a/src/library_dylink.js
25+
+++ b/src/library_dylink.js
26+
@@ -26,7 +26,7 @@ var LibraryDylink = {
27+
// than just running the promises in parallel, this makes a chain of
28+
// promises to run in series.
29+
wasmPlugin['promiseChainEnd'] = wasmPlugin['promiseChainEnd'].then(
30+
- () => loadWebAssemblyModule(byteArray, {loadAsync: true, nodelete: true}, name)).then(
31+
+ () => loadWebAssemblyModule(byteArray, {loadAsync: true, nodelete: true}, name, {})).then(
32+
(exports) => {
33+
#if DYLINK_DEBUG
34+
dbg(`registering preloadedWasm: ${name}`);
35+
@@ -877,7 +877,7 @@ var LibraryDylink = {
36+
if (flags.loadAsync) {
37+
return metadata.neededDynlibs
38+
.reduce((chain, dynNeeded) => chain.then(() =>
39+
- loadDynamicLibrary(dynNeeded, flags)
40+
+ loadDynamicLibrary(dynNeeded, flags, localScope)
41+
), Promise.resolve())
42+
.then(loadModule);
43+
}
44+
--
45+
2.29.2.windows.2
46+

packages/scipy/meta.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ source:
3030
- patches/0007-Fix-gees-calls.patch
3131
- patches/0008-MAINT-linalg-Remove-id_dist-Fortran-files.patch
3232
- patches/0009-Mark-mvndst-functions-recursive.patch
33-
- patches/0001-Make-sreorth-recursive.patch
33+
- patches/0010-Make-sreorth-recursive.patch
34+
- patches/0011-Link-openblas-with-modules-that-require-f2c.patch
3435

3536
build:
3637
cflags: |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
From 091fb1486525e310a9b8e41d6b4d7a70c965c649 Mon Sep 17 00:00:00 2001
2+
From: ryanking13 <[email protected]>
3+
Date: Sun, 28 Jul 2024 18:15:17 +0900
4+
Subject: [PATCH 1/1] Link openblas with modules that require f2c
5+
6+
Some fortran modules require symbols from f2c, which is provided by
7+
openblas.
8+
This patch adds openblas as a dependency to the modules that require f2c
9+
symbols.
10+
---
11+
scipy/integrate/meson.build | 2 +-
12+
scipy/optimize/meson.build | 4 ++--
13+
scipy/special/meson.build | 2 +-
14+
scipy/stats/meson.build | 2 +-
15+
4 files changed, 5 insertions(+), 5 deletions(-)
16+
17+
diff --git a/scipy/integrate/meson.build b/scipy/integrate/meson.build
18+
index 4acc119a5..3c0e0f695 100644
19+
--- a/scipy/integrate/meson.build
20+
+++ b/scipy/integrate/meson.build
21+
@@ -167,7 +167,7 @@ py3.extension_module('_dop',
22+
_dop_module,
23+
link_with: [dop_lib],
24+
c_args: [numpy_nodepr_api, Wno_unused_variable],
25+
- dependencies: [fortranobject_dep],
26+
+ dependencies: [lapack, fortranobject_dep],
27+
link_args: version_link_args,
28+
install: true,
29+
link_language: 'fortran',
30+
diff --git a/scipy/optimize/meson.build b/scipy/optimize/meson.build
31+
index 964edad36..3ca17e3dc 100644
32+
--- a/scipy/optimize/meson.build
33+
+++ b/scipy/optimize/meson.build
34+
@@ -138,7 +138,7 @@ _cobyla = py3.extension_module('_cobyla',
35+
c_args: [numpy_nodepr_api, Wno_unused_variable],
36+
fortran_args: fortran_ignore_warnings,
37+
link_args: version_link_args,
38+
- dependencies: [fortranobject_dep],
39+
+ dependencies: [lapack, fortranobject_dep],
40+
install: true,
41+
link_language: 'fortran',
42+
subdir: 'scipy/optimize'
43+
@@ -172,7 +172,7 @@ _slsqp = py3.extension_module('_slsqp',
44+
c_args: numpy_nodepr_api,
45+
fortran_args: fortran_ignore_warnings,
46+
link_args: version_link_args,
47+
- dependencies: [fortranobject_dep],
48+
+ dependencies: [lapack, fortranobject_dep],
49+
install: true,
50+
link_language: 'fortran',
51+
subdir: 'scipy/optimize'
52+
diff --git a/scipy/special/meson.build b/scipy/special/meson.build
53+
index d166555f5..c0ca05f77 100644
54+
--- a/scipy/special/meson.build
55+
+++ b/scipy/special/meson.build
56+
@@ -276,7 +276,7 @@ py3.extension_module('_specfun',
57+
specfun_module,
58+
c_args: numpy_nodepr_api,
59+
link_args: version_link_args,
60+
- dependencies: [fortranobject_dep],
61+
+ dependencies: [lapack, fortranobject_dep],
62+
link_with: specfun_lib,
63+
link_language: 'fortran',
64+
install: true,
65+
diff --git a/scipy/stats/meson.build b/scipy/stats/meson.build
66+
index 9460f5338..145436fb4 100644
67+
--- a/scipy/stats/meson.build
68+
+++ b/scipy/stats/meson.build
69+
@@ -44,7 +44,7 @@ mvn = py3.extension_module('_mvn',
70+
# Wno-surprising is to suppress a pointless warning with GCC 10-12
71+
# (see GCC bug 98411: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98411)
72+
fortran_args: [fortran_ignore_warnings, _fflag_Wno_surprising],
73+
- dependencies: [fortranobject_dep],
74+
+ dependencies: [lapack, fortranobject_dep],
75+
link_args: version_link_args,
76+
install: true,
77+
link_language: 'fortran',
78+
--
79+
2.29.2.windows.2
80+

0 commit comments

Comments
 (0)