pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-cffi



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat Sep 30 13:09:47 UTC 2017

Modified Files:
        pkgsrc/devel/py-cffi: Makefile PLIST distinfo
Removed Files:
        pkgsrc/devel/py-cffi/patches: patch-c___cffi__backend.c

Log Message:
py-cffi: update to 1.11.0

v1.11
Support the modern standard types char16_t and char32_t. These work like wchar_t: they represent one unicode character, or when used as charN_t * or charN_t[] they represent a unicode string. The 
difference with wchar_t is that they have a known, fixed size. They should work at all places that used to work with wchar_t (please report an issue if I missed something). Note that with 
set_source(), you need to make sure that these types are actually defined by the C source you provide (if used in cdef()).

Support the C99 types float _Complex and double _Complex. Note that libffi doesn’t support them, which means that in the ABI mode you still cannot call C functions that take complex numbers directly 
as arguments or return type.

Fixed a rare race condition when creating multiple FFI instances from multiple threads. (Note that you aren’t meant to create many FFI instances: in inline mode, you should write ffi = cffi.FFI() at 
module level just after import cffi; and in out-of-line mode you don’t instantiate FFI explicitly at all.)

Windows: using callbacks can be messy because the CFFI internal error messages show up to stderr—but stderr goes nowhere in many applications. This makes it particularly hard to get started with the 
embedding mode. (Once you get started, you can at least use @ffi.def_extern(onerror=...) and send the error logs where it makes sense for your application, or record them in log files, and so on.) So 
what is new in CFFI is that now, on Windows CFFI will try to open a non-modal MessageBox (in addition to sending raw messages to stderr). The MessageBox is only visible if the process stays alive: 
typically, console applications that crash close immediately, but that is also the situation where stderr should be visible anyway.

Progress on support for callbacks in NetBSD.

Functions returning booleans would in some case still return 0 or 1 instead of False or True. Fixed.

ffi.gc() now takes an optional third parameter, which gives an estimate of the size (in bytes) of the object. So far, this is only used by PyPy, to make the next GC occur more quickly (issue 320). In 
the future, this might have an effect on CPython too (provided the CPython issue 31105 is addressed).

Add a note to the documentation: the ABI mode gives function objects that are slower to call than the API mode does. For some reason it is often thought to be faster. It is not!


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/devel/py-cffi/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-cffi/PLIST
cvs rdiff -u -r1.24 -r1.25 pkgsrc/devel/py-cffi/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/devel/py-cffi/patches/patch-c___cffi__backend.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-cffi/Makefile
diff -u pkgsrc/devel/py-cffi/Makefile:1.27 pkgsrc/devel/py-cffi/Makefile:1.28
--- pkgsrc/devel/py-cffi/Makefile:1.27  Mon Jul  3 18:17:45 2017
+++ pkgsrc/devel/py-cffi/Makefile       Sat Sep 30 13:09:47 2017
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.27 2017/07/03 18:17:45 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2017/09/30 13:09:47 adam Exp $
 
-DISTNAME=      cffi-1.10.0
+DISTNAME=      cffi-1.11.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cffi/}
 
@@ -11,25 +10,19 @@ HOMEPAGE=   https://pypi.python.org/pypi/c
 COMMENT=       Foreign Function Interface for Python calling C code
 LICENSE=       mit
 
-USE_TOOLS+=    pkg-config
 USE_LANGUAGES= c c++
+USE_TOOLS+=    pkg-config
 
 DEPENDS+=      ${PYPKGPREFIX}-cparser-[0-9]*:../../devel/py-cparser
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 DISTUTILS_BUILDDIR_IN_TEST_ENV=        yes
 
-USE_LANGUAGES= c
-
-.if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
-USE_LANGUAGES+=        c++
-.endif
-
 TEST_ENV+=     TMPDIR=${WRKDIR}/tmp
 
 do-test:
        ${MKDIR} ${WRKDIR}/tmp
-       cd ${WRKSRC} && ${PKGSRC_SETENV} ${TEST_ENV} ${PREFIX}/bin/py.test-${PYVERSSUFFIX} -v
+       cd ${WRKSRC} && ${PKGSRC_SETENV} ${TEST_ENV} ${PREFIX}/bin/py.test-${PYVERSSUFFIX}
 
 .include "../../devel/libffi/buildlink3.mk"
 .include "../../lang/python/egg.mk"

Index: pkgsrc/devel/py-cffi/PLIST
diff -u pkgsrc/devel/py-cffi/PLIST:1.6 pkgsrc/devel/py-cffi/PLIST:1.7
--- pkgsrc/devel/py-cffi/PLIST:1.6      Wed Apr  5 15:54:26 2017
+++ pkgsrc/devel/py-cffi/PLIST  Sat Sep 30 13:09:47 2017
@@ -1,5 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2017/04/05 15:54:26 wiz Exp $
-${PYSITELIB}/_cffi_backend.so
+@comment $NetBSD: PLIST,v 1.7 2017/09/30 13:09:47 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -7,9 +6,11 @@ ${PYSITELIB}/${EGG_INFODIR}/entry_points
 ${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/_cffi_backend.so
 ${PYSITELIB}/cffi/__init__.py
 ${PYSITELIB}/cffi/__init__.pyc
 ${PYSITELIB}/cffi/__init__.pyo
+${PYSITELIB}/cffi/_cffi_errors.h
 ${PYSITELIB}/cffi/_cffi_include.h
 ${PYSITELIB}/cffi/_embedding.h
 ${PYSITELIB}/cffi/api.py

Index: pkgsrc/devel/py-cffi/distinfo
diff -u pkgsrc/devel/py-cffi/distinfo:1.24 pkgsrc/devel/py-cffi/distinfo:1.25
--- pkgsrc/devel/py-cffi/distinfo:1.24  Mon Jul  3 18:17:45 2017
+++ pkgsrc/devel/py-cffi/distinfo       Sat Sep 30 13:09:47 2017
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.24 2017/07/03 18:17:45 joerg Exp $
+$NetBSD: distinfo,v 1.25 2017/09/30 13:09:47 adam Exp $
 
-SHA1 (cffi-1.10.0.tar.gz) = 8484aba03d1e64367d3110c0e36c1ed052b43f12
-RMD160 (cffi-1.10.0.tar.gz) = 8bcdd03716d70fed5a7c25fd0371572356b36aab
-SHA512 (cffi-1.10.0.tar.gz) = 02c9987c44698708dcb7e0aa17637df6b15f81732dc25b03e54563ca5664a817863b87daf7a782a62c7b6150388cdca858ef496a975ab289c86f05e5492465ef
-Size (cffi-1.10.0.tar.gz) = 418131 bytes
-SHA1 (patch-c___cffi__backend.c) = e06cb7fd3eef875ba1176ba8ac9d7c1cad229ccf
+SHA1 (cffi-1.11.0.tar.gz) = 93cb5aaf152e19f9d4082a723aa2396e9cd5d93f
+RMD160 (cffi-1.11.0.tar.gz) = 76dc6345a24be4c292af0db0b9660a6632d63048
+SHA512 (cffi-1.11.0.tar.gz) = 907af351de6f45a8d6e34dcd29b17d77425c6c513a1310570dd6e63921f3631946336350b0c3dcdab9f0bb799dfc41aa85ed0e0657c9c310c434c5aa2a7881ac
+Size (cffi-1.11.0.tar.gz) = 434283 bytes
 SHA1 (patch-testing_cffi0_test__verify.py) = 9097ed364176f968d8c5084e1bc3d3d368d92714
 SHA1 (patch-testing_cffi1_test__verify1.py) = 64a0c7073a446dd4ca7cd97086646959ad4fad08



Home | Main Index | Thread Index | Old Index