From robertwb at gmail.com Mon Oct 10 15:50:54 2016 From: robertwb at gmail.com (Robert Bradshaw) Date: Mon, 10 Oct 2016 12:50:54 -0700 Subject: [Cython] Cython 0.25 beta Message-ID: Thanks for all of those to tested the alpha release. I think we've managed to fix all the issues and regressions raised in that thread; here's a beta that's likely to turn into a release candidate. https://github.com/cython/cython/archive/0.25b0.zip -------------- next part -------------- An HTML attachment was scrubbed... URL: From joshua.adelman at gmail.com Mon Oct 10 20:35:36 2016 From: joshua.adelman at gmail.com (Joshua) Date: Mon, 10 Oct 2016 17:35:36 -0700 (PDT) Subject: [Cython] Cython 0.25 beta In-Reply-To: References: Message-ID: On Monday, October 10, 2016 at 3:51:37 PM UTC-4, Robert Bradshaw wrote: > > Thanks for all of those to tested the alpha release. I think we've managed > to fix all the issues and regressions raised in that thread; here's a beta > that's likely to turn into a release candidate. > > https://github.com/cython/cython/archive/0.25b0.zip > Hi Robert, I just wanted to report that I continue to get the same error reported in the following issue in this release: https://github.com/cython/cython/issues/1466 Thanks, Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.svetlov at gmail.com Tue Oct 11 12:14:16 2016 From: andrew.svetlov at gmail.com (Andrew Svetlov) Date: Tue, 11 Oct 2016 16:14:16 +0000 Subject: [Cython] Cython 0.25 beta In-Reply-To: References: Message-ID: https://github.com/cython/cython/issues/1461 is still an issue. On Tue, Oct 11, 2016 at 4:22 AM Joshua wrote: > > > On Monday, October 10, 2016 at 3:51:37 PM UTC-4, Robert Bradshaw wrote: > > Thanks for all of those to tested the alpha release. I think we've managed > to fix all the issues and regressions raised in that thread; here's a beta > that's likely to turn into a release candidate. > > https://github.com/cython/cython/archive/0.25b0.zip > > > Hi Robert, > > I just wanted to report that I continue to get the same error reported in > the following issue in this release: > https://github.com/cython/cython/issues/1466 > > Thanks, > Josh > _______________________________________________ > cython-devel mailing list > cython-devel at python.org > https://mail.python.org/mailman/listinfo/cython-devel > -- Thanks, Andrew Svetlov -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.svetlov at gmail.com Tue Oct 11 12:16:42 2016 From: andrew.svetlov at gmail.com (Andrew Svetlov) Date: Tue, 11 Oct 2016 09:16:42 -0700 (PDT) Subject: [Cython] Cython 0.25 beta In-Reply-To: References: Message-ID: https://github.com/cython/cython/issues/1461 is still an issue. On Monday, October 10, 2016 at 10:51:37 PM UTC+3, Robert Bradshaw wrote: > > Thanks for all of those to tested the alpha release. I think we've managed > to fix all the issues and regressions raised in that thread; here's a beta > that's likely to turn into a release candidate. > > https://github.com/cython/cython/archive/0.25b0.zip > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertwb at gmail.com Tue Oct 11 17:11:51 2016 From: robertwb at gmail.com (Robert Bradshaw) Date: Tue, 11 Oct 2016 14:11:51 -0700 Subject: [Cython] Cython 0.25 beta In-Reply-To: References: Message-ID: We did not manage to fix all bugs from all previous releases with this release. On Tue, Oct 11, 2016 at 9:16 AM, Andrew Svetlov wrote: > https://github.com/cython/cython/issues/1461 is still an issue. > > On Monday, October 10, 2016 at 10:51:37 PM UTC+3, Robert Bradshaw wrote: >> >> Thanks for all of those to tested the alpha release. I think we've >> managed to fix all the issues and regressions raised in that thread; here's >> a beta that's likely to turn into a release candidate. >> >> https://github.com/cython/cython/archive/0.25b0.zip >> > > _______________________________________________ > cython-devel mailing list > cython-devel at python.org > https://mail.python.org/mailman/listinfo/cython-devel > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertwb at gmail.com Mon Oct 17 15:29:16 2016 From: robertwb at gmail.com (Robert Bradshaw) Date: Mon, 17 Oct 2016 12:29:16 -0700 Subject: [Cython] Cython 0.25 beta In-Reply-To: References: Message-ID: One more beta: https://github.com/cython/cython/archive/0.25b1.tar.gz I'm planning to release before the week is out. On Mon, Oct 10, 2016 at 12:50 PM, Robert Bradshaw wrote: > Thanks for all of those to tested the alpha release. I think we've managed > to fix all the issues and regressions raised in that thread; here's a beta > that's likely to turn into a release candidate. > > https://github.com/cython/cython/archive/0.25b0.zip > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdemeyer at cage.ugent.be Tue Oct 18 04:17:13 2016 From: jdemeyer at cage.ugent.be (Jeroen Demeyer) Date: Tue, 18 Oct 2016 10:17:13 +0200 Subject: [Cython] Regression since 0.25a0 involving std::vector Message-ID: <5805DA89.5000104@cage.ugent.be> This is a new regression introduced since 0.25a0, found while testing Sage with 0.25b1: from libcpp.vector cimport vector cdef extern from *: cdef cppclass BoostGraph[T]: vector[unsigned long] bandwidth_ordering() ctypedef BoostGraph[int] BoostVecDiGraph Error compiling Cython file: ------------------------------------------------------------ ... from libcpp.vector cimport vector cdef extern from *: cdef cppclass BoostGraph[T]: vector[unsigned long] bandwidth_ordering() ctypedef BoostGraph[int] BoostVecDiGraph ^ ------------------------------------------------------------ /tmp/boost_graph.pyx:5:20: Compiler crash in AnalyseDeclarationsTransform File 'ModuleNode.py', line 118, in analyse_declarations: ModuleNode(boost_graph.pyx:1:0, full_module_name = 'boost_graph') File 'Nodes.py', line 425, in analyse_declarations: StatListNode(boost_graph.pyx:1:0) File 'Nodes.py', line 1567, in analyse_declarations: CTypeDefNode(boost_graph.pyx:5:0, visibility = u'private') File 'Nodes.py', line 1123, in analyse: TemplatedTypeNode(boost_graph.pyx:5:20) Compiler crash traceback from this point on: File "/usr/local/src/sage-config/local/lib/python2.7/site-packages/Cython/Compiler/Nodes.py", line 1123, in analyse self.type = base_type.specialize_here(self.pos, template_types) File "/usr/local/src/sage-config/local/lib/python2.7/site-packages/Cython/Compiler/PyrexTypes.py", line 3462, in specialize_here return self.specialize(dict(zip(self.templates, template_values))) File "/usr/local/src/sage-config/local/lib/python2.7/site-packages/Cython/Compiler/PyrexTypes.py", line 3480, in specialize specialized.scope = self.scope.specialize(values, specialized) File "/usr/local/src/sage-config/local/lib/python2.7/site-packages/Cython/Compiler/Symtab.py", line 2284, in specialize e.type.specialize(values), File "/usr/local/src/sage-config/local/lib/python2.7/site-packages/Cython/Compiler/PyrexTypes.py", line 2746, in specialize result = CFuncType(self.return_type.specialize(values), File "/usr/local/src/sage-config/local/lib/python2.7/site-packages/Cython/Compiler/PyrexTypes.py", line 3489, in specialize T = values[self.templates[0]] KeyError: From robertwb at gmail.com Tue Oct 18 11:47:09 2016 From: robertwb at gmail.com (Robert Bradshaw) Date: Tue, 18 Oct 2016 08:47:09 -0700 Subject: [Cython] Regression since 0.25a0 involving std::vector In-Reply-To: <5805DA89.5000104@cage.ugent.be> References: <5805DA89.5000104@cage.ugent.be> Message-ID: Thanks for checking. This was fixed at https://github.com/cython/ cython/commit/4bf8b9b260c33fe88de5d743d5accbcbf649d8a6 Try https://github.com/cython/cython/archive/0.25.x.zip On Tue, Oct 18, 2016 at 1:17 AM, Jeroen Demeyer wrote: > This is a new regression introduced since 0.25a0, found while testing Sage > with 0.25b1: > > > > from libcpp.vector cimport vector > cdef extern from *: > cdef cppclass BoostGraph[T]: > vector[unsigned long] bandwidth_ordering() > ctypedef BoostGraph[int] BoostVecDiGraph > > > > Error compiling Cython file: > ------------------------------------------------------------ > ... > from libcpp.vector cimport vector > cdef extern from *: > cdef cppclass BoostGraph[T]: > vector[unsigned long] bandwidth_ordering() > ctypedef BoostGraph[int] BoostVecDiGraph > ^ > ------------------------------------------------------------ > > /tmp/boost_graph.pyx:5:20: Compiler crash in AnalyseDeclarationsTransform > > File 'ModuleNode.py', line 118, in analyse_declarations: > ModuleNode(boost_graph.pyx:1:0, > full_module_name = 'boost_graph') > File 'Nodes.py', line 425, in analyse_declarations: > StatListNode(boost_graph.pyx:1:0) > File 'Nodes.py', line 1567, in analyse_declarations: > CTypeDefNode(boost_graph.pyx:5:0, > visibility = u'private') > File 'Nodes.py', line 1123, in analyse: TemplatedTypeNode(boost_graph. > pyx:5:20) > > Compiler crash traceback from this point on: > File "/usr/local/src/sage-config/local/lib/python2.7/site-packages/Cython/Compiler/Nodes.py", > line 1123, in analyse > self.type = base_type.specialize_here(self.pos, template_types) > File "/usr/local/src/sage-config/local/lib/python2.7/site-package > s/Cython/Compiler/PyrexTypes.py", line 3462, in specialize_here > return self.specialize(dict(zip(self.templates, template_values))) > File "/usr/local/src/sage-config/local/lib/python2.7/site-package > s/Cython/Compiler/PyrexTypes.py", line 3480, in specialize > specialized.scope = self.scope.specialize(values, specialized) > File "/usr/local/src/sage-config/local/lib/python2.7/site-packages/Cython/Compiler/Symtab.py", > line 2284, in specialize > e.type.specialize(values), > File "/usr/local/src/sage-config/local/lib/python2.7/site-package > s/Cython/Compiler/PyrexTypes.py", line 2746, in specialize > result = CFuncType(self.return_type.specialize(values), > File "/usr/local/src/sage-config/local/lib/python2.7/site-package > s/Cython/Compiler/PyrexTypes.py", line 3489, in specialize > T = values[self.templates[0]] > KeyError: > _______________________________________________ > cython-devel mailing list > cython-devel at python.org > https://mail.python.org/mailman/listinfo/cython-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yselivanov.ml at gmail.com Tue Oct 18 14:16:34 2016 From: yselivanov.ml at gmail.com (Yury Selivanov) Date: Tue, 18 Oct 2016 14:16:34 -0400 Subject: [Cython] Cython 0.25 beta In-Reply-To: References: Message-ID: <6fb00bc7-62fb-a9df-a2f6-0abf46c6cb14@gmail.com> Please also take a look at https://github.com/cython/cython/issues/1493 On 2016-10-10 3:50 PM, Robert Bradshaw wrote: > Thanks for all of those to tested the alpha release. I think we've managed > to fix all the issues and regressions raised in that thread; here's a beta > that's likely to turn into a release candidate. > > https://github.com/cython/cython/archive/0.25b0.zip > > > > _______________________________________________ > cython-devel mailing list > cython-devel at python.org > https://mail.python.org/mailman/listinfo/cython-devel From jdemeyer at cage.ugent.be Wed Oct 19 11:52:06 2016 From: jdemeyer at cage.ugent.be (Jeroen Demeyer) Date: Wed, 19 Oct 2016 17:52:06 +0200 Subject: [Cython] Regression since 0.25a0 involving std::vector In-Reply-To: References: <5805DA89.5000104@cage.ugent.be> Message-ID: <580796A6.9010206@cage.ugent.be> On 2016-10-18 17:47, Robert Bradshaw wrote: > Try https://github.com/cython/cython/archive/0.25.x.zip > Works perfectly in Sage! From robertwb at gmail.com Wed Oct 19 16:32:52 2016 From: robertwb at gmail.com (Robert Bradshaw) Date: Wed, 19 Oct 2016 13:32:52 -0700 Subject: [Cython] Cython 0.25 beta In-Reply-To: <6fb00bc7-62fb-a9df-a2f6-0abf46c6cb14@gmail.com> References: <6fb00bc7-62fb-a9df-a2f6-0abf46c6cb14@gmail.com> Message-ID: One (hopefully last) beta: https://github.com/cython/cython/archive/0.25b2.zip On Tue, Oct 18, 2016 at 11:16 AM, Yury Selivanov wrote: > Please also take a look at https://github.com/cython/cython/issues/1493 > > > > On 2016-10-10 3:50 PM, Robert Bradshaw wrote: >> >> Thanks for all of those to tested the alpha release. I think we've managed >> to fix all the issues and regressions raised in that thread; here's a beta >> that's likely to turn into a release candidate. >> >> https://github.com/cython/cython/archive/0.25b0.zip >> >> >> >> _______________________________________________ >> cython-devel mailing list >> cython-devel at python.org >> https://mail.python.org/mailman/listinfo/cython-devel > > > _______________________________________________ > cython-devel mailing list > cython-devel at python.org > https://mail.python.org/mailman/listinfo/cython-devel From robertwb at gmail.com Tue Oct 25 16:34:22 2016 From: robertwb at gmail.com (Robert Bradshaw) Date: Tue, 25 Oct 2016 13:34:22 -0700 Subject: [Cython] Cython 0.25 released Message-ID: I'm happy to announce the release of Cython 0.25 which has numerous new features and bug fixes. It is available at https://pypi.python.org/pypi/Cython We have also moved bug tracking from trac.cython.org to github issues. However, user support still remains at cython-users@, please refrain from filing issues until you have confirmed an actual bug. - Robert Features added -------------- * def/cpdef methods of cdef classes benefit from Cython's internal function implementation, which enables introspection and line profiling for them. Implementation sponsored by Turbostream (www.turbostream-cfd.com). * The distutils extension ``Cython.Distutils.build_ext`` has now been updated to use cythonize which properly handles dependencies. The old extension can still be found in ``Cython.Distutils.old_build_ext`` and is now deprecated. * Calls to Python functions are faster, following the recent "FastCall" optimisations that Victor Stinner implemented for CPython 3.6. See https://bugs.python.org/issue27128 and related issues. * The new METH_FASTCALL calling convention for PyCFunctions is supported in CPython 3.6. See https://bugs.python.org/issue27810 * C++ classes can now have typedef members. STL containers updated with value_type. * Support for bazel using a the pyx_library rule in //Tools:rules.bzl. * Initial support for using Cython modules in Pyston. Patch by Daetalus. * Dynamic Python attributes are allowed on cdef classes if an attribute ``cdef dict __dict__`` is declared in the class. Patch by empyrical. * Cython implemented C++ classes can make direct calls to base class methods. Patch by empyrical. * New directive ``cython.no_gc`` to fully disable GC for a cdef class. Patch by Claudio Freire. * Buffer variables are no longer excluded from ``locals()``. Patch by da-woods. * Building f-strings is faster, especially when formatting C integers. * for-loop iteration over "std::string". * ``libc/math.pxd`` provides ``e`` and ``pi`` as alias constants to simplify usage as a drop-in replacement for Python's math module. * Speed up cython.inline(). * Binary lshift operations with small constant Python integers are faster. * Some integer operations on Python long objects are faster in Python 2.7. * Support for the C++ ``typeid`` operator. Significant Bugs fixed ---------------------- * Division of complex numbers avoids overflow by using Smith's method. * Some function signatures in ``libc.math`` and ``numpy.pxd`` were incorrect. Patch by Michael Seifert. Other changes ------------- * The "%%cython" IPython/jupyter magic now defaults to the language level of the current jupyter kernel. The language level can be set explicitly with "%%cython -2" or "%%cython -3". From yselivanov.ml at gmail.com Tue Oct 25 23:56:54 2016 From: yselivanov.ml at gmail.com (Yury Selivanov) Date: Tue, 25 Oct 2016 23:56:54 -0400 Subject: [Cython] Cython 0.25 released In-Reply-To: References: Message-ID: <2a34c7f2-ee1d-0cdb-b564-872b830554a2@gmail.com> Congrats on the release! It seems though that it's slightly broken: https://github.com/cython/cython/issues/1496. Yury On 2016-10-25 4:34 PM, Robert Bradshaw wrote: > I'm happy to announce the release of Cython 0.25 which has numerous > new features and bug fixes. It is available at > https://pypi.python.org/pypi/Cython > > We have also moved bug tracking from trac.cython.org to github issues. > However, user support still remains at cython-users@, please refrain > from filing issues until you have confirmed an actual bug. > > - Robert > > > Features added > -------------- > > * def/cpdef methods of cdef classes benefit from Cython's internal function > implementation, which enables introspection and line profiling for them. > Implementation sponsored by Turbostream (www.turbostream-cfd.com). > > * The distutils extension ``Cython.Distutils.build_ext`` has now been updated > to use cythonize which properly handles dependencies. The old extension can > still be found in ``Cython.Distutils.old_build_ext`` and is now deprecated. > > * Calls to Python functions are faster, following the recent "FastCall" > optimisations that Victor Stinner implemented for CPython 3.6. > See https://bugs.python.org/issue27128 and related issues. > > * The new METH_FASTCALL calling convention for PyCFunctions is supported > in CPython 3.6. See https://bugs.python.org/issue27810 > > * C++ classes can now have typedef members. STL containers updated with > value_type. > > * Support for bazel using a the pyx_library rule in //Tools:rules.bzl. > > * Initial support for using Cython modules in Pyston. Patch by Daetalus. > > * Dynamic Python attributes are allowed on cdef classes if an attribute > ``cdef dict __dict__`` is declared in the class. Patch by empyrical. > > * Cython implemented C++ classes can make direct calls to base class methods. > Patch by empyrical. > > * New directive ``cython.no_gc`` to fully disable GC for a cdef class. > Patch by Claudio Freire. > > * Buffer variables are no longer excluded from ``locals()``. > Patch by da-woods. > > * Building f-strings is faster, especially when formatting C integers. > > * for-loop iteration over "std::string". > > * ``libc/math.pxd`` provides ``e`` and ``pi`` as alias constants to simplify > usage as a drop-in replacement for Python's math module. > > * Speed up cython.inline(). > > * Binary lshift operations with small constant Python integers are faster. > > * Some integer operations on Python long objects are faster in Python 2.7. > > * Support for the C++ ``typeid`` operator. > > Significant Bugs fixed > ---------------------- > > * Division of complex numbers avoids overflow by using Smith's method. > > * Some function signatures in ``libc.math`` and ``numpy.pxd`` were incorrect. > Patch by Michael Seifert. > > Other changes > ------------- > > * The "%%cython" IPython/jupyter magic now defaults to the language level of > the current jupyter kernel. The language level can be set explicitly with > "%%cython -2" or "%%cython -3". > _______________________________________________ > cython-devel mailing list > cython-devel at python.org > https://mail.python.org/mailman/listinfo/cython-devel From robertwb at math.washington.edu Wed Oct 26 00:09:39 2016 From: robertwb at math.washington.edu (Robert Bradshaw) Date: Tue, 25 Oct 2016 21:09:39 -0700 Subject: [Cython] Cython 0.25 released In-Reply-To: <2a34c7f2-ee1d-0cdb-b564-872b830554a2@gmail.com> References: <2a34c7f2-ee1d-0cdb-b564-872b830554a2@gmail.com> Message-ID: Thanks for the bug report. That's why we have alphas and betas. On Tue, Oct 25, 2016 at 8:56 PM, Yury Selivanov wrote: > Congrats on the release! > > It seems though that it's slightly broken: https://github.com/cython/cyth > on/issues/1496. > > > Yury > > > On 2016-10-25 4:34 PM, Robert Bradshaw wrote: > >> I'm happy to announce the release of Cython 0.25 which has numerous >> new features and bug fixes. It is available at >> https://pypi.python.org/pypi/Cython >> >> We have also moved bug tracking from trac.cython.org to github issues. >> However, user support still remains at cython-users@, please refrain >> from filing issues until you have confirmed an actual bug. >> >> - Robert >> >> >> Features added >> -------------- >> >> * def/cpdef methods of cdef classes benefit from Cython's internal >> function >> implementation, which enables introspection and line profiling for >> them. >> Implementation sponsored by Turbostream (www.turbostream-cfd.com). >> >> * The distutils extension ``Cython.Distutils.build_ext`` has now been >> updated >> to use cythonize which properly handles dependencies. The old >> extension can >> still be found in ``Cython.Distutils.old_build_ext`` and is now >> deprecated. >> >> * Calls to Python functions are faster, following the recent "FastCall" >> optimisations that Victor Stinner implemented for CPython 3.6. >> See https://bugs.python.org/issue27128 and related issues. >> >> * The new METH_FASTCALL calling convention for PyCFunctions is supported >> in CPython 3.6. See https://bugs.python.org/issue27810 >> >> * C++ classes can now have typedef members. STL containers updated with >> value_type. >> >> * Support for bazel using a the pyx_library rule in //Tools:rules.bzl. >> >> * Initial support for using Cython modules in Pyston. Patch by Daetalus. >> >> * Dynamic Python attributes are allowed on cdef classes if an attribute >> ``cdef dict __dict__`` is declared in the class. Patch by empyrical. >> >> * Cython implemented C++ classes can make direct calls to base class >> methods. >> Patch by empyrical. >> >> * New directive ``cython.no_gc`` to fully disable GC for a cdef class. >> Patch by Claudio Freire. >> >> * Buffer variables are no longer excluded from ``locals()``. >> Patch by da-woods. >> >> * Building f-strings is faster, especially when formatting C integers. >> >> * for-loop iteration over "std::string". >> >> * ``libc/math.pxd`` provides ``e`` and ``pi`` as alias constants to >> simplify >> usage as a drop-in replacement for Python's math module. >> >> * Speed up cython.inline(). >> >> * Binary lshift operations with small constant Python integers are faster. >> >> * Some integer operations on Python long objects are faster in Python 2.7. >> >> * Support for the C++ ``typeid`` operator. >> >> Significant Bugs fixed >> ---------------------- >> >> * Division of complex numbers avoids overflow by using Smith's method. >> >> * Some function signatures in ``libc.math`` and ``numpy.pxd`` were >> incorrect. >> Patch by Michael Seifert. >> >> Other changes >> ------------- >> >> * The "%%cython" IPython/jupyter magic now defaults to the language level >> of >> the current jupyter kernel. The language level can be set explicitly >> with >> "%%cython -2" or "%%cython -3". >> _______________________________________________ >> cython-devel mailing list >> cython-devel at python.org >> https://mail.python.org/mailman/listinfo/cython-devel >> > > _______________________________________________ > cython-devel mailing list > cython-devel at python.org > https://mail.python.org/mailman/listinfo/cython-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine at nagafix.co.uk Wed Oct 26 05:11:06 2016 From: antoine at nagafix.co.uk (Antoine Martin) Date: Wed, 26 Oct 2016 16:11:06 +0700 Subject: [Cython] Cython 0.25 released In-Reply-To: References: Message-ID: <4e4206be-d911-4dc9-d21a-2549504e865f@nagafix.co.uk> On 26/10/16 03:34, Robert Bradshaw wrote: > I'm happy to announce the release of Cython 0.25 which has numerous > new features and bug fixes. It is available at > https://pypi.python.org/pypi/Cython > > We have also moved bug tracking from trac.cython.org to github issues. > However, user support still remains at cython-users@, please refrain > from filing issues until you have confirmed an actual bug. 0.25 does not build on any CentOS 6.x: wget "https://pypi.python.org/packages/f8/2e/5898046f8089205981447c23ebb8fe02cd9d66939cd74338aa4872853d8e/Cython-0.25.tar.gz#md5=1b61433b8410ac382ac9b248b42466fd" tar -zxf Cython-0.25.tar.gz cd Cython-0.25 python ./setup.py build (..) building 'Cython.Runtime.refnanny' extension creating build/temp.linux-x86_64-2.6/home/centos/Cython-0.25/Cython/Runtime gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c /home/centos/Cython-0.25/Cython/Runtime/refnanny.c -o build/temp.linux-x86_64-2.6/home/centos/Cython-0.25/Cython/Runtime/refnanny.o gcc: /home/centos/Cython-0.25/Cython/Runtime/refnanny.c: No such file or directory gcc: no input files error: command 'gcc' failed with exit status 1 If I just run: cythonize /home/centos/Cython-0.25/Cython/Runtime/refnanny.pyx Then the build succeeds. Cheers Antoine > > - Robert > > > Features added > -------------- > > * def/cpdef methods of cdef classes benefit from Cython's internal function > implementation, which enables introspection and line profiling for them. > Implementation sponsored by Turbostream (www.turbostream-cfd.com). > > * The distutils extension ``Cython.Distutils.build_ext`` has now been updated > to use cythonize which properly handles dependencies. The old extension can > still be found in ``Cython.Distutils.old_build_ext`` and is now deprecated. > > * Calls to Python functions are faster, following the recent "FastCall" > optimisations that Victor Stinner implemented for CPython 3.6. > See https://bugs.python.org/issue27128 and related issues. > > * The new METH_FASTCALL calling convention for PyCFunctions is supported > in CPython 3.6. See https://bugs.python.org/issue27810 > > * C++ classes can now have typedef members. STL containers updated with > value_type. > > * Support for bazel using a the pyx_library rule in //Tools:rules.bzl. > > * Initial support for using Cython modules in Pyston. Patch by Daetalus. > > * Dynamic Python attributes are allowed on cdef classes if an attribute > ``cdef dict __dict__`` is declared in the class. Patch by empyrical. > > * Cython implemented C++ classes can make direct calls to base class methods. > Patch by empyrical. > > * New directive ``cython.no_gc`` to fully disable GC for a cdef class. > Patch by Claudio Freire. > > * Buffer variables are no longer excluded from ``locals()``. > Patch by da-woods. > > * Building f-strings is faster, especially when formatting C integers. > > * for-loop iteration over "std::string". > > * ``libc/math.pxd`` provides ``e`` and ``pi`` as alias constants to simplify > usage as a drop-in replacement for Python's math module. > > * Speed up cython.inline(). > > * Binary lshift operations with small constant Python integers are faster. > > * Some integer operations on Python long objects are faster in Python 2.7. > > * Support for the C++ ``typeid`` operator. > > Significant Bugs fixed > ---------------------- > > * Division of complex numbers avoids overflow by using Smith's method. > > * Some function signatures in ``libc.math`` and ``numpy.pxd`` were incorrect. > Patch by Michael Seifert. > > Other changes > ------------- > > * The "%%cython" IPython/jupyter magic now defaults to the language level of > the current jupyter kernel. The language level can be set explicitly with > "%%cython -2" or "%%cython -3". > _______________________________________________ > cython-devel mailing list > cython-devel at python.org > https://mail.python.org/mailman/listinfo/cython-devel > From robertwb at gmail.com Wed Oct 26 12:15:50 2016 From: robertwb at gmail.com (Robert Bradshaw) Date: Wed, 26 Oct 2016 09:15:50 -0700 Subject: [Cython] Cython 0.25 released In-Reply-To: <4e4206be-d911-4dc9-d21a-2549504e865f@nagafix.co.uk> References: <4e4206be-d911-4dc9-d21a-2549504e865f@nagafix.co.uk> Message-ID: I'm having trouble reproducing this on any of my setups though. Let's follow up on https://github.com/cython/cython/issues/1499 On Wed, Oct 26, 2016 at 2:11 AM, Antoine Martin wrote: > On 26/10/16 03:34, Robert Bradshaw wrote: > > I'm happy to announce the release of Cython 0.25 which has numerous > > new features and bug fixes. It is available at > > https://pypi.python.org/pypi/Cython > > > > We have also moved bug tracking from trac.cython.org to github issues. > > However, user support still remains at cython-users@, please refrain > > from filing issues until you have confirmed an actual bug. > > 0.25 does not build on any CentOS 6.x: > wget > "https://pypi.python.org/packages/f8/2e/5898046f8089205981447c23ebb8fe > 02cd9d66939cd74338aa4872853d8e/Cython-0.25.tar.gz#md5= > 1b61433b8410ac382ac9b248b42466fd" > tar -zxf Cython-0.25.tar.gz > cd Cython-0.25 > python ./setup.py build > (..) > building 'Cython.Runtime.refnanny' extension > creating build/temp.linux-x86_64-2.6/home/centos/Cython-0.25/ > Cython/Runtime > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c > /home/centos/Cython-0.25/Cython/Runtime/refnanny.c -o > build/temp.linux-x86_64-2.6/home/centos/Cython-0.25/ > Cython/Runtime/refnanny.o > gcc: /home/centos/Cython-0.25/Cython/Runtime/refnanny.c: No such file or > directory > gcc: no input files > error: command 'gcc' failed with exit status 1 > > If I just run: > cythonize /home/centos/Cython-0.25/Cython/Runtime/refnanny.pyx > Then the build succeeds. > > Cheers > Antoine > > > > > > - Robert > > > > > > Features added > > -------------- > > > > * def/cpdef methods of cdef classes benefit from Cython's internal > function > > implementation, which enables introspection and line profiling for > them. > > Implementation sponsored by Turbostream (www.turbostream-cfd.com). > > > > * The distutils extension ``Cython.Distutils.build_ext`` has now been > updated > > to use cythonize which properly handles dependencies. The old > extension can > > still be found in ``Cython.Distutils.old_build_ext`` and is now > deprecated. > > > > * Calls to Python functions are faster, following the recent "FastCall" > > optimisations that Victor Stinner implemented for CPython 3.6. > > See https://bugs.python.org/issue27128 and related issues. > > > > * The new METH_FASTCALL calling convention for PyCFunctions is supported > > in CPython 3.6. See https://bugs.python.org/issue27810 > > > > * C++ classes can now have typedef members. STL containers updated with > > value_type. > > > > * Support for bazel using a the pyx_library rule in //Tools:rules.bzl. > > > > * Initial support for using Cython modules in Pyston. Patch by Daetalus. > > > > * Dynamic Python attributes are allowed on cdef classes if an attribute > > ``cdef dict __dict__`` is declared in the class. Patch by empyrical. > > > > * Cython implemented C++ classes can make direct calls to base class > methods. > > Patch by empyrical. > > > > * New directive ``cython.no_gc`` to fully disable GC for a cdef class. > > Patch by Claudio Freire. > > > > * Buffer variables are no longer excluded from ``locals()``. > > Patch by da-woods. > > > > * Building f-strings is faster, especially when formatting C integers. > > > > * for-loop iteration over "std::string". > > > > * ``libc/math.pxd`` provides ``e`` and ``pi`` as alias constants to > simplify > > usage as a drop-in replacement for Python's math module. > > > > * Speed up cython.inline(). > > > > * Binary lshift operations with small constant Python integers are > faster. > > > > * Some integer operations on Python long objects are faster in Python > 2.7. > > > > * Support for the C++ ``typeid`` operator. > > > > Significant Bugs fixed > > ---------------------- > > > > * Division of complex numbers avoids overflow by using Smith's method. > > > > * Some function signatures in ``libc.math`` and ``numpy.pxd`` were > incorrect. > > Patch by Michael Seifert. > > > > Other changes > > ------------- > > > > * The "%%cython" IPython/jupyter magic now defaults to the language > level of > > the current jupyter kernel. The language level can be set explicitly > with > > "%%cython -2" or "%%cython -3". > > _______________________________________________ > > cython-devel mailing list > > cython-devel at python.org > > https://mail.python.org/mailman/listinfo/cython-devel > > > > _______________________________________________ > cython-devel mailing list > cython-devel at python.org > https://mail.python.org/mailman/listinfo/cython-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertwb at gmail.com Wed Oct 26 17:05:53 2016 From: robertwb at gmail.com (Robert Bradshaw) Date: Wed, 26 Oct 2016 14:05:53 -0700 Subject: [Cython] Cython 0.25 released In-Reply-To: References: <4e4206be-d911-4dc9-d21a-2549504e865f@nagafix.co.uk> Message-ID: I plan on releasing https://github.com/cython/cython/archive/0.25.1b1.tar.gz later today. I'd like to figure out the CentOS issue, but can't reproduce. (To reiterate, if you were broken by this release, this is what prereleases are for :). Bugs fixed ---------- * Fixes a bug with ``isinstance(o, Exception)`` (Github issue #1496). * Fixes bug with ``cython.view.array`` missing utility code in some cases (Github issue #1502). Other changes ------------- * The distutils extension ``Cython.Distutils.build_ext`` has been reverted, temporarily, to be ``old_build_ext`` to give projects time to migrate. The new build_ext is available as ``new_build_ext``. On Wed, Oct 26, 2016 at 9:15 AM, Robert Bradshaw wrote: > I'm having trouble reproducing this on any of my setups though. Let's follow > up on https://github.com/cython/cython/issues/1499 > > On Wed, Oct 26, 2016 at 2:11 AM, Antoine Martin > wrote: >> >> On 26/10/16 03:34, Robert Bradshaw wrote: >> > I'm happy to announce the release of Cython 0.25 which has numerous >> > new features and bug fixes. It is available at >> > https://pypi.python.org/pypi/Cython >> > >> > We have also moved bug tracking from trac.cython.org to github issues. >> > However, user support still remains at cython-users@, please refrain >> > from filing issues until you have confirmed an actual bug. >> >> 0.25 does not build on any CentOS 6.x: >> wget >> >> "https://pypi.python.org/packages/f8/2e/5898046f8089205981447c23ebb8fe02cd9d66939cd74338aa4872853d8e/Cython-0.25.tar.gz#md5=1b61433b8410ac382ac9b248b42466fd" >> tar -zxf Cython-0.25.tar.gz >> cd Cython-0.25 >> python ./setup.py build >> (..) >> building 'Cython.Runtime.refnanny' extension >> creating >> build/temp.linux-x86_64-2.6/home/centos/Cython-0.25/Cython/Runtime >> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall >> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector >> --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC >> -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions >> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic >> -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c >> /home/centos/Cython-0.25/Cython/Runtime/refnanny.c -o >> >> build/temp.linux-x86_64-2.6/home/centos/Cython-0.25/Cython/Runtime/refnanny.o >> gcc: /home/centos/Cython-0.25/Cython/Runtime/refnanny.c: No such file or >> directory >> gcc: no input files >> error: command 'gcc' failed with exit status 1 >> >> If I just run: >> cythonize /home/centos/Cython-0.25/Cython/Runtime/refnanny.pyx >> Then the build succeeds. >> >> Cheers >> Antoine >> >> >> > >> > - Robert >> > >> > >> > Features added >> > -------------- >> > >> > * def/cpdef methods of cdef classes benefit from Cython's internal >> > function >> > implementation, which enables introspection and line profiling for >> > them. >> > Implementation sponsored by Turbostream (www.turbostream-cfd.com). >> > >> > * The distutils extension ``Cython.Distutils.build_ext`` has now been >> > updated >> > to use cythonize which properly handles dependencies. The old >> > extension can >> > still be found in ``Cython.Distutils.old_build_ext`` and is now >> > deprecated. >> > >> > * Calls to Python functions are faster, following the recent "FastCall" >> > optimisations that Victor Stinner implemented for CPython 3.6. >> > See https://bugs.python.org/issue27128 and related issues. >> > >> > * The new METH_FASTCALL calling convention for PyCFunctions is supported >> > in CPython 3.6. See https://bugs.python.org/issue27810 >> > >> > * C++ classes can now have typedef members. STL containers updated with >> > value_type. >> > >> > * Support for bazel using a the pyx_library rule in //Tools:rules.bzl. >> > >> > * Initial support for using Cython modules in Pyston. Patch by >> > Daetalus. >> > >> > * Dynamic Python attributes are allowed on cdef classes if an attribute >> > ``cdef dict __dict__`` is declared in the class. Patch by empyrical. >> > >> > * Cython implemented C++ classes can make direct calls to base class >> > methods. >> > Patch by empyrical. >> > >> > * New directive ``cython.no_gc`` to fully disable GC for a cdef class. >> > Patch by Claudio Freire. >> > >> > * Buffer variables are no longer excluded from ``locals()``. >> > Patch by da-woods. >> > >> > * Building f-strings is faster, especially when formatting C integers. >> > >> > * for-loop iteration over "std::string". >> > >> > * ``libc/math.pxd`` provides ``e`` and ``pi`` as alias constants to >> > simplify >> > usage as a drop-in replacement for Python's math module. >> > >> > * Speed up cython.inline(). >> > >> > * Binary lshift operations with small constant Python integers are >> > faster. >> > >> > * Some integer operations on Python long objects are faster in Python >> > 2.7. >> > >> > * Support for the C++ ``typeid`` operator. >> > >> > Significant Bugs fixed >> > ---------------------- >> > >> > * Division of complex numbers avoids overflow by using Smith's method. >> > >> > * Some function signatures in ``libc.math`` and ``numpy.pxd`` were >> > incorrect. >> > Patch by Michael Seifert. >> > >> > Other changes >> > ------------- >> > >> > * The "%%cython" IPython/jupyter magic now defaults to the language >> > level of >> > the current jupyter kernel. The language level can be set explicitly >> > with >> > "%%cython -2" or "%%cython -3". >> > _______________________________________________ >> > cython-devel mailing list >> > cython-devel at python.org >> > https://mail.python.org/mailman/listinfo/cython-devel >> > >> >> _______________________________________________ >> cython-devel mailing list >> cython-devel at python.org >> https://mail.python.org/mailman/listinfo/cython-devel > > From t3kcit at gmail.com Wed Oct 26 12:21:25 2016 From: t3kcit at gmail.com (Andreas Mueller) Date: Wed, 26 Oct 2016 12:21:25 -0400 Subject: [Cython] Cython 0.25 released In-Reply-To: References: Message-ID: <4818fc86-4b7d-608c-f010-93040a052012@gmail.com> Congrats! Great work! On 10/25/2016 04:34 PM, Robert Bradshaw wrote: > I'm happy to announce the release of Cython 0.25 which has numerous > new features and bug fixes. It is available at > https://pypi.python.org/pypi/Cython > > We have also moved bug tracking from trac.cython.org to github issues. > However, user support still remains at cython-users@, please refrain > from filing issues until you have confirmed an actual bug. > > - Robert > > > Features added > -------------- > > * def/cpdef methods of cdef classes benefit from Cython's internal function > implementation, which enables introspection and line profiling for them. > Implementation sponsored by Turbostream (www.turbostream-cfd.com). > > * The distutils extension ``Cython.Distutils.build_ext`` has now been updated > to use cythonize which properly handles dependencies. The old extension can > still be found in ``Cython.Distutils.old_build_ext`` and is now deprecated. > > * Calls to Python functions are faster, following the recent "FastCall" > optimisations that Victor Stinner implemented for CPython 3.6. > See https://bugs.python.org/issue27128 and related issues. > > * The new METH_FASTCALL calling convention for PyCFunctions is supported > in CPython 3.6. See https://bugs.python.org/issue27810 > > * C++ classes can now have typedef members. STL containers updated with > value_type. > > * Support for bazel using a the pyx_library rule in //Tools:rules.bzl. > > * Initial support for using Cython modules in Pyston. Patch by Daetalus. > > * Dynamic Python attributes are allowed on cdef classes if an attribute > ``cdef dict __dict__`` is declared in the class. Patch by empyrical. > > * Cython implemented C++ classes can make direct calls to base class methods. > Patch by empyrical. > > * New directive ``cython.no_gc`` to fully disable GC for a cdef class. > Patch by Claudio Freire. > > * Buffer variables are no longer excluded from ``locals()``. > Patch by da-woods. > > * Building f-strings is faster, especially when formatting C integers. > > * for-loop iteration over "std::string". > > * ``libc/math.pxd`` provides ``e`` and ``pi`` as alias constants to simplify > usage as a drop-in replacement for Python's math module. > > * Speed up cython.inline(). > > * Binary lshift operations with small constant Python integers are faster. > > * Some integer operations on Python long objects are faster in Python 2.7. > > * Support for the C++ ``typeid`` operator. > > Significant Bugs fixed > ---------------------- > > * Division of complex numbers avoids overflow by using Smith's method. > > * Some function signatures in ``libc.math`` and ``numpy.pxd`` were incorrect. > Patch by Michael Seifert. > > Other changes > ------------- > > * The "%%cython" IPython/jupyter magic now defaults to the language level of > the current jupyter kernel. The language level can be set explicitly with > "%%cython -2" or "%%cython -3". > _______________________________________________ > cython-devel mailing list > cython-devel at python.org > https://mail.python.org/mailman/listinfo/cython-devel