mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-23 04:05:55 -04:00
Fix bundled ipython incompatibility with python 3.8 (bz 1832673).
This commit is contained in:
parent
e524b0b03b
commit
6b21278ce7
2 changed files with 23 additions and 1 deletions
|
@ -1,3 +1,22 @@
|
||||||
|
diff -up build/pkgs/ipython/src/IPython/core/interactiveshell.py.orig build/pkgs/ipython/src/IPython/core/interactiveshell.py
|
||||||
|
--- build/pkgs/ipython/src/IPython/core/interactiveshell.py.orig 2018-07-28 18:24:17.000000000 -0600
|
||||||
|
+++ build/pkgs/ipython/src/IPython/core/interactiveshell.py 2020-05-07 09:19:44.916646996 -0600
|
||||||
|
@@ -2813,13 +2813,13 @@ class InteractiveShell(SingletonConfigur
|
||||||
|
|
||||||
|
try:
|
||||||
|
for i, node in enumerate(to_run_exec):
|
||||||
|
- mod = ast.Module([node])
|
||||||
|
+ mod = ast.Module([node], [])
|
||||||
|
code = compiler(mod, cell_name, "exec")
|
||||||
|
if self.run_code(code, result):
|
||||||
|
return True
|
||||||
|
|
||||||
|
for i, node in enumerate(to_run_interactive):
|
||||||
|
- mod = ast.Interactive([node])
|
||||||
|
+ mod = ast.Interactive([node], [])
|
||||||
|
code = compiler(mod, cell_name, "single")
|
||||||
|
if self.run_code(code, result):
|
||||||
|
return True
|
||||||
diff -up build/pkgs/sagetex/src/extractsagecode.py.orig build/pkgs/sagetex/src/extractsagecode.py
|
diff -up build/pkgs/sagetex/src/extractsagecode.py.orig build/pkgs/sagetex/src/extractsagecode.py
|
||||||
--- build/pkgs/sagetex/src/extractsagecode.py.orig 2019-11-14 04:02:40.000000000 -0700
|
--- build/pkgs/sagetex/src/extractsagecode.py.orig 2019-11-14 04:02:40.000000000 -0700
|
||||||
+++ build/pkgs/sagetex/src/extractsagecode.py 2020-02-25 13:42:46.674646884 -0700
|
+++ build/pkgs/sagetex/src/extractsagecode.py 2020-02-25 13:42:46.674646884 -0700
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
Name: sagemath
|
Name: sagemath
|
||||||
Summary: A free open-source mathematics software system
|
Summary: A free open-source mathematics software system
|
||||||
Version: 9.0
|
Version: 9.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
# The file ${SAGE_ROOT}/COPYING.txt is the upstream license breakdown file
|
# The file ${SAGE_ROOT}/COPYING.txt is the upstream license breakdown file
|
||||||
# Additionally, every $files section has a comment with the license name
|
# Additionally, every $files section has a comment with the license name
|
||||||
# before files with that license
|
# before files with that license
|
||||||
|
@ -1814,6 +1814,9 @@ rm -fr %{SAGE_LOCAL}/var/lib/sage/installed/database_cremona_ellcurve-%{cremona_
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 7 2020 Jerry James <loganjerry@gmail.com> - 9.0-3
|
||||||
|
- Fix bundled ipython incompatibility with python 3.8 (bz 1832673)
|
||||||
|
|
||||||
* Fri Mar 13 2020 Jerry James <loganjerry@gmail.com> - 9.0-2
|
* Fri Mar 13 2020 Jerry James <loganjerry@gmail.com> - 9.0-2
|
||||||
- Rebuild for gap 4.11.0
|
- Rebuild for gap 4.11.0
|
||||||
- Update libgap interface for gap 4.11.0
|
- Update libgap interface for gap 4.11.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue