Skip to content

Commit ceeaa9c

Browse files
author
Release Manager
committed
gh-41292: restore lazy_import of maxima in calculus.py
<!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes #12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> On #40265 the lazy import of the maxima interface in calculus.py was converted to a normal import. This PR restores the lazy import. <!-- v Why is this change required? What problem does it solve? --> The maxima interface is imported lazily to avoid the significant cost of starting and initializing the ECL and maxima_lib interfaces. <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes #12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #41292 Reported by: nbruin Reviewer(s): Michael Orlitzky, Tobias Diez
2 parents 5dd5d95 + fcffc86 commit ceeaa9c

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

build/pkgs/configure/checksums.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=2b8ed0a6efdcecee23827226d82539d81a899962
3-
sha256=bee999bb3e27feff36f9515e03dfc85c1d0a35bda1c65417b993d34dbc777428
2+
sha1=b782877ad8d7e1bfc2601ebfa15c54e3702c46c3
3+
sha256=861d39383635537eeda09680bdfa132748d31bddb26d2d1684726ae669b0e74e
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7202dcde7d61cd97df8bb5748b47e5622a710417
1+
04838c9c81e4051fc1a3a8a9a3b5541ef4b7a008

src/sage/calculus/calculus.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@
426426
from types import FunctionType
427427

428428
from sage.arith.misc import algebraic_dependency
429-
from sage.interfaces.maxima_lib import maxima
429+
from sage.misc.lazy_import import lazy_import
430+
lazy_import("sage.interfaces.maxima_lib","maxima")
430431
from sage.misc.latex import latex
431432
from sage.misc.parser import LookupNameMaker, Parser
432433
from sage.rings.cc import CC

src/sage/calculus/desolvers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
import shutil
7676

7777
from sage.calculus.functional import diff
78-
from sage.interfaces.maxima_lib import maxima
78+
from sage.misc.lazy_import import lazy_import
79+
lazy_import("sage.interfaces.maxima_lib","maxima")
7980
from sage.misc.functional import N
8081
from sage.rings.real_mpfr import RealField
8182
from sage.structure.element import Expression

0 commit comments

Comments
 (0)