mirror of https://github.com/pyodide/pyodide.git
Skip scipy.optimize._cobyla missing import
This commit is contained in:
parent
3e1d6348a7
commit
7358049baa
|
@ -22,6 +22,7 @@ source:
|
|||
- patches/skip-fortran-fails-to-link.patch
|
||||
- patches/dummy_threading.patch
|
||||
- patches/skip_ellip_harm_2_pyx_ctypes.patch
|
||||
- patches/skip_optimize_cobyla_import.patch
|
||||
|
||||
build:
|
||||
cflags: -I../../CLAPACK-WA/INCLUDE -Wno-implicit-function-declaration
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
commit ca74a1078c3955b06d1ab236bdd13256cb7c2551
|
||||
Author: Roman Yurchak <rth.yurchak@pm.me>
|
||||
Date: Thu Oct 25 12:43:50 2018 +0200
|
||||
|
||||
Skip scipy.optimize._cobyla import
|
||||
|
||||
diff --git a/scipy/optimize/_minimize.py b/scipy/optimize/_minimize.py
|
||||
index 259546035..8b0b6960b 100644
|
||||
--- a/scipy/optimize/_minimize.py
|
||||
+++ b/scipy/optimize/_minimize.py
|
||||
@@ -29,7 +29,8 @@ from ._trustregion_ncg import _minimize_trust_ncg
|
||||
# constrained minimization
|
||||
from .lbfgsb import _minimize_lbfgsb
|
||||
from .tnc import _minimize_tnc
|
||||
-from .cobyla import _minimize_cobyla
|
||||
+#from .cobyla import _minimize_cobyla
|
||||
+_minimize_cobyla = None
|
||||
from .slsqp import _minimize_slsqp
|
||||
|
||||
|
|
@ -24,18 +24,14 @@ def test_scipy_import(selenium_standalone, request):
|
|||
|
||||
# supported modules
|
||||
for module in ['cluster', 'constants', 'fftpack', 'odr', 'sparse',
|
||||
'interpolate',
|
||||
'interpolate', 'integrate',
|
||||
'linalg',
|
||||
'misc', 'ndimage', 'spatial', 'special'
|
||||
]:
|
||||
selenium.run(f"import scipy.{module}")
|
||||
|
||||
# not yet built modules
|
||||
for module in ['integrate', # needs special
|
||||
'signal', # needs special
|
||||
'stats', # need special
|
||||
'optimize', # needs _odepack
|
||||
]:
|
||||
for module in []:
|
||||
print(module)
|
||||
with pytest.raises(JavascriptException) as err:
|
||||
selenium.run(f"import scipy.{module}")
|
||||
|
|
Loading…
Reference in New Issue