Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
7358049b
Commit
7358049b
authored
Oct 25, 2018
by
Roman Yurchak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip scipy.optimize._cobyla missing import
parent
3e1d6348
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
packages/scipy/meta.yaml
packages/scipy/meta.yaml
+1
-0
packages/scipy/patches/skip_optimize_cobyla_import.patch
packages/scipy/patches/skip_optimize_cobyla_import.patch
+20
-0
test/packages/test_scipy.py
test/packages/test_scipy.py
+2
-6
No files found.
packages/scipy/meta.yaml
View file @
7358049b
...
@@ -22,6 +22,7 @@ source:
...
@@ -22,6 +22,7 @@ source:
-
patches/skip-fortran-fails-to-link.patch
-
patches/skip-fortran-fails-to-link.patch
-
patches/dummy_threading.patch
-
patches/dummy_threading.patch
-
patches/skip_ellip_harm_2_pyx_ctypes.patch
-
patches/skip_ellip_harm_2_pyx_ctypes.patch
-
patches/skip_optimize_cobyla_import.patch
build
:
build
:
cflags
:
-I../../CLAPACK-WA/INCLUDE -Wno-implicit-function-declaration
cflags
:
-I../../CLAPACK-WA/INCLUDE -Wno-implicit-function-declaration
...
...
packages/scipy/patches/skip_optimize_cobyla_import.patch
0 → 100644
View file @
7358049b
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
test/packages/test_scipy.py
View file @
7358049b
...
@@ -24,18 +24,14 @@ def test_scipy_import(selenium_standalone, request):
...
@@ -24,18 +24,14 @@ def test_scipy_import(selenium_standalone, request):
# supported modules
# supported modules
for
module
in
[
'cluster'
,
'constants'
,
'fftpack'
,
'odr'
,
'sparse'
,
for
module
in
[
'cluster'
,
'constants'
,
'fftpack'
,
'odr'
,
'sparse'
,
'interpolate'
,
'interpolate'
,
'integrate'
,
'linalg'
,
'linalg'
,
'misc'
,
'ndimage'
,
'spatial'
,
'special'
'misc'
,
'ndimage'
,
'spatial'
,
'special'
]:
]:
selenium
.
run
(
f"import scipy.
{
module
}
"
)
selenium
.
run
(
f"import scipy.
{
module
}
"
)
# not yet built modules
# not yet built modules
for
module
in
[
'integrate'
,
# needs special
for
module
in
[]:
'signal'
,
# needs special
'stats'
,
# need special
'optimize'
,
# needs _odepack
]:
print
(
module
)
print
(
module
)
with
pytest
.
raises
(
JavascriptException
)
as
err
:
with
pytest
.
raises
(
JavascriptException
)
as
err
:
selenium
.
run
(
f"import scipy.
{
module
}
"
)
selenium
.
run
(
f"import scipy.
{
module
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment