diff options
author | wiz <wiz@pkgsrc.org> | 2014-01-27 19:44:24 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2014-01-27 19:44:24 +0000 |
commit | e58a09ac126ed7917b2232c2c4e3ba38aa601f06 (patch) | |
tree | 903d7b6b197cf3d76bde07cc2573e945c282a0ad /devel | |
parent | 6af83ec42c2cab5c116e1bd4a9408348649791bb (diff) | |
download | pkgsrc-e58a09ac126ed7917b2232c2c4e3ba38aa601f06.tar.gz |
Update to 0.20:
0.20 (??)
===================
Features added
--------------
* Support for CPython 3.4.
* Support for calling C++ template functions.
* ``yield`` is supported in ``finally`` clauses.
* The C code generated for finally blocks is duplicated for each exit
case to allow for better optimisations by the C compiler.
* Cython tries to undo the Python optimisationism of assigning a bound
method to a local variable when it can generate better code for the
direct call.
* Constant Python float values are cached.
* String equality comparisons can use faster type specific code in
more cases than before.
* String/Unicode formatting using the '%' operator uses a faster
C-API call.
* ``bytearray`` has become a known type and supports coercion from and
to C strings. Indexing, slicing and decoding is optimised. Note that
this may have an impact on existing code due to type inference.
* Using ``cdef basestring stringvar`` and function arguments typed as
``basestring`` is now meaningful and allows assigning exactly
``str`` and ``unicode`` objects, but no subtypes of these types.
* Support for the ``__debug__`` builtin.
* Assertions in Cython compiled modules are disabled if the running
Python interpreter was started with the "-O" option.
* Some types that Cython provides internally, such as functions and
generators, are now shared across modules if more than one Cython
implemented module is imported.
* The type inference algorithm works more fine granular by taking the
results of the control flow analysis into account.
* A new script in ``bin/cythonize`` provides a command line frontend
to the cythonize() compilation function (including distutils build).
* The new extension type decorator ``@cython.no_gc_clear`` prevents
objects from being cleared during cyclic garbage collection, thus
making sure that object attributes are kept alive until deallocation.
* During cyclic garbage collection, attributes of extension types that
cannot create reference cycles due to their type (e.g. strings) are
no longer considered for traversal or clearing. This can reduce the
processing overhead when searching for or cleaning up reference cycles.
* Package compilation (i.e. ``__init__.py`` files) now works, starting
with Python 3.3.
* The cython-mode.el script for Emacs was updated. Patch by Ivan Andrus.
* An option common_utility_include_dir was added to cythonize() to save
oft-used utility code once in a separate directory rather than as
part of each generated file.
* ``unraisable_tracebacks`` directive added to control printing of
tracebacks of unraisable exceptions.
Bugs fixed
----------
* Abstract Python classes that subtyped a Cython extension type
failed to raise an exception on instantiation, and thus ended
up being instantiated.
* ``set.add(a_tuple)`` and ``set.discard(a_tuple)`` failed with a
TypeError in Py2.4.
* The PEP 3155 ``__qualname__`` was incorrect for nested classes and
inner classes/functions declared as ``global``.
* Several corner cases in the try-finally statement were fixed.
* The metaclass of a Python class was not inherited from its parent
class(es). It is now extracted from the list of base classes if not
provided explicitly using the Py3 ``metaclass`` keyword argument.
In Py2 compilation mode, a ``__metaclass__`` entry in the class
dict will still take precedence if not using Py3 metaclass syntax,
but only *after* creating the class dict (which may have been done
by a metaclass of a base class, see PEP 3115). It is generally
recommended to use the explicit Py3 syntax to define metaclasses
for Python types at compile time.
* The automatic C switch statement generation behaves more safely for
heterogeneous value types (e.g. mixing enum and char), allowing for
a slightly wider application and reducing corner cases. It now always
generates a 'default' clause to avoid C compiler warnings about
unmatched enum values.
* Fixed a bug where class hierarchies declared out-of-order could result
in broken generated code.
* Fixed a bug which prevented overriding const methods of C++ classes.
* Fixed a crash when converting Python objects to C++ strings fails.
Other changes
-------------
* In Py3 compilation mode, Python2-style metaclasses declared by a
``__metaclass__`` class dict entry are ignored.
* In Py3.4+, the Cython generator type uses ``tp_finalize()`` for safer
cleanup instead of ``tp_del()``.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-cython/Makefile | 4 | ||||
-rw-r--r-- | devel/py-cython/PLIST | 13 | ||||
-rw-r--r-- | devel/py-cython/distinfo | 8 |
3 files changed, 17 insertions, 8 deletions
diff --git a/devel/py-cython/Makefile b/devel/py-cython/Makefile index aa5e285d858..7e90b806d1a 100644 --- a/devel/py-cython/Makefile +++ b/devel/py-cython/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.17 2014/01/25 10:30:03 wiz Exp $ +# $NetBSD: Makefile,v 1.18 2014/01/27 19:44:24 wiz Exp $ -DISTNAME= Cython-0.19.2 +DISTNAME= Cython-0.20 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/Cy/cy/} CATEGORIES= lang python MASTER_SITES= http://cython.org/release/ diff --git a/devel/py-cython/PLIST b/devel/py-cython/PLIST index 22e78cc89f2..25d6c2f9918 100644 --- a/devel/py-cython/PLIST +++ b/devel/py-cython/PLIST @@ -1,9 +1,12 @@ -@comment $NetBSD: PLIST,v 1.10 2013/05/05 20:47:29 wiz Exp $ +@comment $NetBSD: PLIST,v 1.11 2014/01/27 19:44:24 wiz Exp $ bin/cygdb${PYVERSSUFFIX} bin/cython${PYVERSSUFFIX} ${PYSITELIB}/Cython/Build/BuildExecutable.py ${PYSITELIB}/Cython/Build/BuildExecutable.pyc ${PYSITELIB}/Cython/Build/BuildExecutable.pyo +${PYSITELIB}/Cython/Build/Cythonize.py +${PYSITELIB}/Cython/Build/Cythonize.pyc +${PYSITELIB}/Cython/Build/Cythonize.pyo ${PYSITELIB}/Cython/Build/Dependencies.py ${PYSITELIB}/Cython/Build/Dependencies.pyc ${PYSITELIB}/Cython/Build/Dependencies.pyo @@ -323,7 +326,8 @@ ${PYSITELIB}/Cython/Includes/libcpp/stack.pxd ${PYSITELIB}/Cython/Includes/libcpp/string.pxd ${PYSITELIB}/Cython/Includes/libcpp/utility.pxd ${PYSITELIB}/Cython/Includes/libcpp/vector.pxd -${PYSITELIB}/Cython/Includes/numpy.pxd +${PYSITELIB}/Cython/Includes/numpy/__init__.pxd +${PYSITELIB}/Cython/Includes/numpy/math.pxd ${PYSITELIB}/Cython/Includes/openmp.pxd ${PYSITELIB}/Cython/Includes/posix/__init__.pxd ${PYSITELIB}/Cython/Includes/posix/fcntl.pxd @@ -383,6 +387,10 @@ ${PYSITELIB}/Cython/Tempita/__init__.pyo ${PYSITELIB}/Cython/Tempita/_looper.py ${PYSITELIB}/Cython/Tempita/_looper.pyc ${PYSITELIB}/Cython/Tempita/_looper.pyo +${PYSITELIB}/Cython/Tempita/_tempita.py +${PYSITELIB}/Cython/Tempita/_tempita.pyc +${PYSITELIB}/Cython/Tempita/_tempita.pyo +${PYSITELIB}/Cython/Tempita/_tempita.so ${PYSITELIB}/Cython/Tempita/compat3.py ${PYSITELIB}/Cython/Tempita/compat3.pyc ${PYSITELIB}/Cython/Tempita/compat3.pyo @@ -404,6 +412,7 @@ ${PYSITELIB}/Cython/Tests/xmlrunner.pyo ${PYSITELIB}/Cython/Utility/Buffer.c ${PYSITELIB}/Cython/Utility/Builtins.c ${PYSITELIB}/Cython/Utility/Capsule.c +${PYSITELIB}/Cython/Utility/CommonTypes.c ${PYSITELIB}/Cython/Utility/CppConvert.pyx ${PYSITELIB}/Cython/Utility/CppSupport.cpp ${PYSITELIB}/Cython/Utility/CythonFunction.c diff --git a/devel/py-cython/distinfo b/devel/py-cython/distinfo index 25996bcd1cc..0c35cf4aff1 100644 --- a/devel/py-cython/distinfo +++ b/devel/py-cython/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.10 2013/10/20 22:04:31 wiz Exp $ +$NetBSD: distinfo,v 1.11 2014/01/27 19:44:24 wiz Exp $ -SHA1 (Cython-0.19.2.tar.gz) = f8b5baff885c836a264bec2ac7f2f7910b2f1a9d -RMD160 (Cython-0.19.2.tar.gz) = ec1377cac7fc9b9aabf42eb543ccb607d4f25112 -Size (Cython-0.19.2.tar.gz) = 1389354 bytes +SHA1 (Cython-0.20.tar.gz) = fb22442bd23acb26b6a803bad0dd6746cbb602f3 +RMD160 (Cython-0.20.tar.gz) = bc67c79c9eb817db2a1213bda4ab7fa7e3c5a4b5 +Size (Cython-0.20.tar.gz) = 1420856 bytes SHA1 (patch-aa) = 78bed9e17be5bc5e97695fe6c7fd6bc09d8e2b6a SHA1 (patch-ab) = de923488eb3f08f7e048c35c57bd60cbfb2b4c53 SHA1 (patch-ac) = 79b421be9b4b72c57df9907533c4732fec9458f9 |