summaryrefslogtreecommitdiff
path: root/devel/py-cffi
diff options
context:
space:
mode:
authorwiz <wiz>2015-08-30 14:42:03 +0000
committerwiz <wiz>2015-08-30 14:42:03 +0000
commit7a9b9fff4f5077f45719f8f17525231077d7b421 (patch)
tree710f57eb14afe77449b0b44bb4d2cdbbae6b1e0a /devel/py-cffi
parent55bdceb47c172ad75b5b371e4ef5f48310f6c879 (diff)
downloadpkgsrc-7a9b9fff4f5077f45719f8f17525231077d7b421.tar.gz
Update to 1.2.1:
v1.2.1 Nothing changed from v1.2.0. v1.2.0 Out-of-line mode: int a[][...]; can be used to declare a structure field or global variable which is, simultaneously, of total length unknown to the C compiler (the a[] part) and each element is itself an array of N integers, where the value of N is known to the C compiler (the int and [...] parts around it). Similarly, int a[5][...]; is supported (but probably less useful: remember that in C it means int (a[5])[...];). PyPy: the lib.some_function objects were missing the attributes __name__, __module__ and __doc__ that are expected e.g. by some decorators-management functions from functools. Out-of-line API mode: you can now do from _example.lib import x to import the name x from _example.lib, even though the lib object is not a standard module object. (Also works in from _example.lib import *, but this is even more of a hack and will fail if lib happens to declare a name called __all__. Note that * excludes the global variables; only the functions and constants make sense to import like this.) lib.__dict__ works again and gives you a copy of the dictâassuming that lib has got no symbol called precisely __dict__. (In general, it is safer to use dir(lib).) Out-of-line API mode: global variables are now fetched on demand at every access. It fixes issue #212 (Windows DLL variables), and also allows variables that are defined as dynamic macros (like errno) or __thread -local variables. (This change might also tighten the C compilerâs check on the variablesâ type.) Issue #209: dereferencing NULL pointers now raises RuntimeError instead of segfaulting. Meant as a debugging aid. The check is only for NULL: if you dereference random or dead pointers you might still get segfaults. Issue #152: callbacks: added an argument ffi.callback(..., onerror=...). If the main callback function raises an exception and onerror is provided, then onerror(exception, exc_value, traceback) is called. This is similar to writing a try: except: in the main callback function, but in some cases (e.g. a signal) an exception can occur at the very start of the callback functionâbefore it had time to enter the try: except: block. Issue #115: added ffi.new_allocator(), which officializes support for alternative allocators.
Diffstat (limited to 'devel/py-cffi')
-rw-r--r--devel/py-cffi/Makefile4
-rw-r--r--devel/py-cffi/distinfo8
2 files changed, 6 insertions, 6 deletions
diff --git a/devel/py-cffi/Makefile b/devel/py-cffi/Makefile
index 6169f2828aa..69712dc7876 100644
--- a/devel/py-cffi/Makefile
+++ b/devel/py-cffi/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2015/06/14 16:24:45 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2015/08/30 14:42:03 wiz Exp $
-DISTNAME= cffi-1.1.2
+DISTNAME= cffi-1.2.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel
MASTER_SITES= https://pypi.python.org/packages/source/c/cffi/
diff --git a/devel/py-cffi/distinfo b/devel/py-cffi/distinfo
index fdafb0a68a0..8d6554a7cac 100644
--- a/devel/py-cffi/distinfo
+++ b/devel/py-cffi/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2015/06/14 16:24:45 wiz Exp $
+$NetBSD: distinfo,v 1.10 2015/08/30 14:42:03 wiz Exp $
-SHA1 (cffi-1.1.2.tar.gz) = 6d6203bf7d390560ac50943da4a3d2c96ab29756
-RMD160 (cffi-1.1.2.tar.gz) = d3a138b528a25f7ad3abc125a35b3f656a9291f7
-Size (cffi-1.1.2.tar.gz) = 326758 bytes
+SHA1 (cffi-1.2.1.tar.gz) = f7ed014ff1602a8e81073f5356b4cafbc3f5dce1
+RMD160 (cffi-1.2.1.tar.gz) = 3629cda4d6252a356ceb1b66f78a7aed5fbcec88
+Size (cffi-1.2.1.tar.gz) = 335778 bytes