Update to 0.9.2: I pushed release 0.9.2 out of the door with mostly just this fix: https://bitbucket.org/cffi/cffi/issue/187/inconsistencies-in-ffifrom_buffer ffi.from_buffer() was incorrectly accepting objects of type 'memoryview' containing strings, which was not intended --- it works only on CPython, not PyPy, and it is documented that it should not work. Additionally, still on CPython, ffi.from_buffer() was incorrectly rejecting objects of type 'buffer' pointing to read-only objects, say read-only numpy arrays. (Insert here the usual rant against the internal mess of buffer and memoryview objects.)diff -r1.5 -r1.6 pkgsrc/devel/py-cffi/Makefile
(wiz)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.5 2015/03/09 08:11:54 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.6 2015/03/15 21:08:00 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= cffi-0.9.1 | 3 | DISTNAME= cffi-0.9.2 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= devel | 5 | CATEGORIES= devel | |
6 | MASTER_SITES= https://pypi.python.org/packages/source/c/cffi/ | 6 | MASTER_SITES= https://pypi.python.org/packages/source/c/cffi/ | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://pypi.python.org/pypi/cffi/ | 9 | HOMEPAGE= https://pypi.python.org/pypi/cffi/ | |
10 | COMMENT= Foreign Function Interface for Python calling C code | 10 | COMMENT= Foreign Function Interface for Python calling C code | |
11 | LICENSE= mit | 11 | LICENSE= mit | |
12 | 12 | |||
13 | USE_TOOLS+= pkg-config | 13 | USE_TOOLS+= pkg-config | |
14 | 14 | |||
15 | .include "../../devel/libffi/buildlink3.mk" | 15 | .include "../../devel/libffi/buildlink3.mk" | |
16 | .include "../../lang/python/egg.mk" | 16 | .include "../../lang/python/egg.mk" |
@@ -1,5 +1,5 @@ | @@ -1,5 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.5 2015/03/09 08:11:54 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.6 2015/03/15 21:08:00 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (cffi-0.9.1.tar.gz) = 6a1b297ee7108803f54bb6333cf1e5630a193756 | 3 | SHA1 (cffi-0.9.2.tar.gz) = 7cfc992699ef8b65d6300c04f3efad00bd2a6cba | |
4 | RMD160 (cffi-0.9.1.tar.gz) = ea3888bcd062f635c098c9bb7c146000e89a0323 | 4 | RMD160 (cffi-0.9.2.tar.gz) = e974258700148f68ab80ef6dda20d8fb260c6642 | |
5 | Size (cffi-0.9.1.tar.gz) = 207931 bytes | 5 | Size (cffi-0.9.2.tar.gz) = 209160 bytes |