1c6f8d6d98
0.18 (2013-01-28) ================= Features added -------------- * Named Unicode escapes ("\N{...}") are supported. * Python functions/classes provide the special attribute "__qualname__" as defined by PEP 3155. * Added a directive ``overflowcheck`` which raises an OverflowException when arithmetic with C ints overflow. This has a modest performance penalty, but is much faster than using Python ints. * Calls to nested Python functions are resolved at compile time. * Type inference works across nested functions. * ``py_bytes_string.decode(...)`` is optimised. * C ``const`` declarations are supported in the language. Bugs fixed ---------- * Automatic C++ exception mapping didn't work in nogil functions (only in "with nogil" blocks).
38 lines
957 B
Makefile
38 lines
957 B
Makefile
# $NetBSD: Makefile,v 1.13 2013/02/03 16:35:51 wiz Exp $
|
|
#
|
|
|
|
DISTNAME= Cython-0.18
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/Cy/cy/}
|
|
CATEGORIES= lang python
|
|
MASTER_SITES= http://cython.org/release/
|
|
|
|
MAINTAINER= jihbed.research@gmail.com
|
|
HOMEPAGE= http://cython.org/
|
|
COMMENT= C-Extensions for Python
|
|
LICENSE= apache-1.1
|
|
|
|
USE_LANGUAGES= c
|
|
PYDISTUTILSPKG= yes
|
|
PYTHON_VERSIONS_INCLUDE_3X= yes
|
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
|
PLIST_VARS= cygdb
|
|
|
|
REPLACE_PYTHON+= Cython/Debugger/Cygdb.py
|
|
REPLACE_PYTHON+= Cython/Debugger/libpython.py
|
|
REPLACE_PYTHON+= cython.py
|
|
|
|
post-extract:
|
|
cd ${WRKSRC}/bin && ${MV} cython cython${PYVERSSUFFIX}
|
|
cd ${WRKSRC}/bin && ${MV} cygdb cygdb${PYVERSSUFFIX}
|
|
|
|
# for test only
|
|
#USE_LANGUAGES+= c++
|
|
do-test:
|
|
(cd ${WRKSRC} && ${PYTHONBIN} runtests.py)
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
# for test only
|
|
#.include "../../math/py-numpy/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|