Commit 3fd8aaef authored by Torsten Landschoff's avatar Torsten Landschoff

Finished 3.0.7-1 for unstable, adding Python 3.5 support.

parent 6d9ab934
swig (3.0.7-1) UNRELEASED; urgency=low
swig (3.0.7-1) unstable; urgency=low
* Mark binary packages as Multi-Arch: foreign (closes: #738513).
* Build swig, swig-doc and swig-examples dependency packages here
(moved from swig2.0 source package).
* Apply patch for Python 3.5 support by Matthias Klose, closes: #802906.
-- Torsten Landschoff <torsten@debian.org> Sat, 29 Aug 2015 00:37:21 +0200
-- Torsten Landschoff <torsten@debian.org> Wed, 28 Oct 2015 22:15:01 +0100
swig (3.0.7-0) experimental; urgency=low
......
From: Matthias Klose <doko@ubuntu.com>
Subject: Fix support for Python 3.5, adding PyAsyncMethods
Python 3.5 adds new PyAsyncMethods to the PyTypeObject, this patch adjusts
the code that SWIG generates when using the -builtin flag.
Origin: http://launchpadlibrarian.net/222739670/swig_3.0.7-0ubuntu1_3.0.7-0ubuntu2.diff.gz
Bug: https://github.com/swig/swig/issues/539
Bug-Debian: http://bugs.debian.org/802906
Applied-Upstream: 3.0.8, https://github.com/swig/swig/commit/ef001de5240c1e05494e23b933b687f3f266045c
Index: b/Source/Modules/python.cxx
===================================================================
--- a/Source/Modules/python.cxx
+++ b/Source/Modules/python.cxx
@@ -4053,6 +4053,15 @@ public:
Printv(f, "#endif\n", NIL);
Printf(f, " },\n");
+ // PyAsyncMethods as_async
+ Printv(f, "#if PY_VERSION_HEX >= 0x03050000\n", NIL);
+ Printf(f, " {\n");
+ printSlot(f, getSlot(n, "feature:python:am_await"), "am_await", "unaryfunc");
+ printSlot(f, getSlot(n, "feature:python:am_aiter"), "am_aiter", "unaryfunc");
+ printSlot(f, getSlot(n, "feature:python:am_anext"), "am_anext", "unaryfunc");
+ Printf(f, " },\n");
+ Printv(f, "#endif\n", NIL);
+
// PyNumberMethods as_number
Printf(f, " {\n");
printSlot(f, getSlot(n, "feature:python:nb_add"), "nb_add", "binaryfunc");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment