[arch-commits] Commit in sagemath/trunk (PKGBUILD sagemath-jedi-0.16.patch)

Antonio Rojas arojas at archlinux.org
Tue Apr 7 21:24:43 UTC 2020


    Date: Tuesday, April 7, 2020 @ 21:24:43
  Author: arojas
Revision: 612493

Fix crash on cython modules tab completion with jedi 0.16

Modified:
  sagemath/trunk/PKGBUILD
  sagemath/trunk/sagemath-jedi-0.16.patch

--------------------------+
 PKGBUILD                 |    4 ++--
 sagemath-jedi-0.16.patch |   19 ++++++++++++++++++-
 2 files changed, 20 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-07 21:17:52 UTC (rev 612492)
+++ PKGBUILD	2020-04-07 21:24:43 UTC (rev 612493)
@@ -8,7 +8,7 @@
 pkgbase=sagemath
 pkgname=(sagemath sagemath-jupyter)
 pkgver=9.0
-pkgrel=13
+pkgrel=14
 pkgdesc="Open Source Mathematics Software, free alternative to Magma, Maple, Mathematica, and Matlab"
 arch=(x86_64)
 url="http://www.sagemath.org"
@@ -56,7 +56,7 @@
             '9062b412595e81a5ca560a5ae789f8b7318981689cb8d076b30d8c54a4fc4495'
             'd430e76c5cdebed9bd1cde0f05e74fba620c736c68c018d70d84dc7b3e3c9049'
             '7123af05c79f76b94c89aa97da13dd1c1a796cdf10a9486e0974c88054eb3037'
-            'efb5e8b314b0c29eca79f29d70cd302ef9565813fd331a9f1ecb4ac70f416f94')
+            '63914b14d8369cb37e88500c73029bea83025d437029af65ba523f5f4396af91')
 
 prepare(){
   cd sage-$pkgver

Modified: sagemath-jedi-0.16.patch
===================================================================
--- sagemath-jedi-0.16.patch	2020-04-07 21:17:52 UTC (rev 612492)
+++ sagemath-jedi-0.16.patch	2020-04-07 21:24:43 UTC (rev 612493)
@@ -10,4 +10,21 @@
  # Python 3.8 deprecation warnings
  warnings.filterwarnings('ignore', category=DeprecationWarning,
      message='.*PY_SSIZE_T_CLEAN.*')
-
+diff --git a/src/sage/__init__.py b/src/sage/__init__.py
+index c5ebb92..e2ae5b8 100644
+--- a/src/sage/__init__.py
++++ b/src/sage/__init__.py
+@@ -56,13 +56,3 @@ def isfunction(obj):
+ 
+ import inspect
+ inspect.isfunction = isfunction
+-
+-
+-# Monkey-patch ExtensionFileLoader to allow IPython to find the sources
+-# of Cython files. See https://trac.sagemath.org/ticket/24681
+-try:
+-    from importlib.machinery import ExtensionFileLoader
+-except ImportError:
+-    pass  # Python 2
+-else:
+-    del ExtensionFileLoader.get_source



More information about the arch-commits mailing list