Fix ipython-5.8.0 on python-3.8

Fix issue due to changes in ast.Module.

"...fine by me. Please go ahead." edd@ (maintainer)
This commit is contained in:
bket 2020-07-08 13:01:23 +00:00
parent 976b21feb9
commit 739506e510
2 changed files with 19 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.54 2020/07/03 21:12:39 sthen Exp $
# $OpenBSD: Makefile,v 1.55 2020/07/08 13:01:23 bket Exp $
COMMENT = enhanced interactive Python shell
MODPY_EGG_VERSION = 5.8.0
REVISION = 4
REVISION = 5
DISTNAME = ipython-${MODPY_EGG_VERSION}
PKGNAME = ipython${MODPY_MAJOR_VERSION}-${MODPY_EGG_VERSION}
CATEGORIES = devel

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-IPython_core_interactiveshell_py,v 1.1 2020/07/08 13:01:23 bket Exp $
IPython is broken on python-3.8, due to changes to ast.Module. Taken from
https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1715405.html
Index: IPython/core/interactiveshell.py
--- IPython/core/interactiveshell.py.orig
+++ IPython/core/interactiveshell.py
@@ -2813,7 +2813,7 @@ class InteractiveShell(SingletonConfigurable):
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