pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-cython 0.26:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f00f97d32d5
branches:  trunk
changeset: 365557:2f00f97d32d5
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Jul 20 08:37:09 2017 +0000

description:
0.26:

Features added

* Pythran can be used as a backend for evaluating NumPy array expressions.

* cdef classes now support pickling by default when possible.
  This can be disabled with the ``auto_pickle`` directive.

* Speed up comparisons of strings if their hash value is available.

* Support pyximport from zip files.

* IPython magic now respects the ``__all__`` variable and ignores
  names with leading-underscore (like ``import *`` does).

* ``abs()`` is optimised for C complex numbers.

* The display of C lines in Cython tracebacks can now be enabled at runtime
  via ``import cython_runtime; cython_runtime.cline_in_traceback=True``.
  The default has been changed to False.

* The overhead of calling fused types generic functions was reduced.

* "cdef extern" include files are now also searched relative to the current file.

* Optional optimization for re-aquiring the GIL, controlled by the
  `fast_gil` directive.

Bugs fixed
----------

* Item lookup/assignment with a unicode character as index that is typed
  (explicitly or implicitly) as ``Py_UCS4`` or ``Py_UNICODE`` used the
  integer value instead of the Unicode string value. Code that relied on
  the previous behaviour now triggers a warning that can be disabled by
  applying an explicit cast. (Github issue 1602)

* f-string processing was adapted to changes in PEP 498 and CPython 3.6.

* Invalid C code when decoding from UTF-16(LE/BE) byte strings.

* Unicode escapes in 'ur' raw-unicode strings were not resolved in Py2 code.

* File paths of code objects are now relative.

* Decorators of cdef class methods could be executed twice.

* Several warnings in the generated coder are now suppressed.

Other changes
-------------

* The ``unraisable_tracebacks`` option now defaults to ``True``.

* Coercion of C++ containers to Python is no longer automatic on attribute
  access (Github issue 1521).

* Access to Python attributes of cimported modules without the corresponding
  import is now a compile-time (rather than runtime) error.

* Do not use special dll linkage for "cdef public" functions.

* cdef/cpdef methods must match their declarations.  See Github Issue 1732.
  This is now a warning and will be an error in future releases.

diffstat:

 devel/py-cython/Makefile |   8 ++++----
 devel/py-cython/PLIST    |   8 ++++++--
 devel/py-cython/distinfo |  10 +++++-----
 3 files changed, 15 insertions(+), 11 deletions(-)

diffs (81 lines):

diff -r e2651848dab4 -r 2f00f97d32d5 devel/py-cython/Makefile
--- a/devel/py-cython/Makefile  Thu Jul 20 07:25:00 2017 +0000
+++ b/devel/py-cython/Makefile  Thu Jul 20 08:37:09 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.35 2017/01/25 16:09:06 adam Exp $
+# $NetBSD: Makefile,v 1.36 2017/07/20 08:37:09 adam Exp $
 
-DISTNAME=      Cython-0.25.2
+DISTNAME=      Cython-0.26
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=    lang python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cython/}
@@ -22,13 +22,13 @@
 # for test only
 #USE_LANGUAGES+= c++
 do-test:
-       (cd ${WRKSRC} && ${PYTHONBIN} runtests.py)
+       cd ${WRKSRC} && ${PYTHONBIN} runtests.py
 
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
                ${MV} cython cython${PYVERSSUFFIX} && \
                ${MV} cythonize cythonize${PYVERSSUFFIX} && \
-               ${MV} cygdb cygdb${PYVERSSUFFIX}
+               ${MV} cygdb cygdb${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"
diff -r e2651848dab4 -r 2f00f97d32d5 devel/py-cython/PLIST
--- a/devel/py-cython/PLIST     Thu Jul 20 07:25:00 2017 +0000
+++ b/devel/py-cython/PLIST     Thu Jul 20 08:37:09 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.19 2017/01/25 16:09:06 adam Exp $
+@comment $NetBSD: PLIST,v 1.20 2017/07/20 08:37:09 adam Exp $
 bin/cygdb${PYVERSSUFFIX}
 bin/cython${PYVERSSUFFIX}
 bin/cythonize${PYVERSSUFFIX}
@@ -136,6 +136,9 @@
 ${PYSITELIB}/Cython/Compiler/PyrexTypes.py
 ${PYSITELIB}/Cython/Compiler/PyrexTypes.pyc
 ${PYSITELIB}/Cython/Compiler/PyrexTypes.pyo
+${PYSITELIB}/Cython/Compiler/Pythran.py
+${PYSITELIB}/Cython/Compiler/Pythran.pyc
+${PYSITELIB}/Cython/Compiler/Pythran.pyo
 ${PYSITELIB}/Cython/Compiler/Scanning.pxd
 ${PYSITELIB}/Cython/Compiler/Scanning.py
 ${PYSITELIB}/Cython/Compiler/Scanning.pyc
@@ -354,6 +357,7 @@
 ${PYSITELIB}/Cython/Includes/libcpp/cast.pxd
 ${PYSITELIB}/Cython/Includes/libcpp/complex.pxd
 ${PYSITELIB}/Cython/Includes/libcpp/deque.pxd
+${PYSITELIB}/Cython/Includes/libcpp/functional.pxd
 ${PYSITELIB}/Cython/Includes/libcpp/iterator.pxd
 ${PYSITELIB}/Cython/Includes/libcpp/limits.pxd
 ${PYSITELIB}/Cython/Includes/libcpp/list.pxd
@@ -473,7 +477,7 @@
 ${PYSITELIB}/Cython/Utility/CConvert.pyx
 ${PYSITELIB}/Cython/Utility/CMath.c
 ${PYSITELIB}/Cython/Utility/Capsule.c
-${PYSITELIB}/Cython/Utility/CommonTypes.c
+${PYSITELIB}/Cython/Utility/CommonStructures.c
 ${PYSITELIB}/Cython/Utility/Complex.c
 ${PYSITELIB}/Cython/Utility/Coroutine.c
 ${PYSITELIB}/Cython/Utility/CpdefEnums.pyx
diff -r e2651848dab4 -r 2f00f97d32d5 devel/py-cython/distinfo
--- a/devel/py-cython/distinfo  Thu Jul 20 07:25:00 2017 +0000
+++ b/devel/py-cython/distinfo  Thu Jul 20 08:37:09 2017 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.27 2017/01/25 16:09:06 adam Exp $
+$NetBSD: distinfo,v 1.28 2017/07/20 08:37:09 adam Exp $
 
-SHA1 (Cython-0.25.2.tar.gz) = e73f5afe89792df3467cc7bccd29fc01467fc28b
-RMD160 (Cython-0.25.2.tar.gz) = c66145ced4fc6c66b151b26915ce29220b3ac3d5
-SHA512 (Cython-0.25.2.tar.gz) = 1974b9374aeedb030307dc95aa6560ce9d5e1652783cd4552e96ef11663c73dd263e3521b68e7712abbb31628011e2e66320c5ee2577968684e2679eb80726e1
-Size (Cython-0.25.2.tar.gz) = 1703315 bytes
+SHA1 (Cython-0.26.tar.gz) = 61e15492c1057d5b6c76d8090e8ebaa47ce25d2b
+RMD160 (Cython-0.26.tar.gz) = 68953645c0ca07a4ed8114d3babceeba499c99d9
+SHA512 (Cython-0.26.tar.gz) = 58b7dbdca3b1bdfcb8b968cb1b59826b793656bb7f1203a80b59b3fae2d3174cc99f19f88fc2ec175aa98c9daeca0eb3c52674a7889ba1e914fd20d19ef92aed
+Size (Cython-0.26.tar.gz) = 1692039 bytes
 SHA1 (patch-ac) = d0e06dd9e4b5a34d0614ec17f51c129eb7724323
 SHA1 (patch-runtests.py) = 788ff593da9ce447af368957f1a8be562e2d40da



Home | Main Index | Thread Index | Old Index