Cython 0.17 beta 3 released - release candidate

173 views
Skip to first unread message

Stefan Behnel

unread,
Aug 23, 2012, 2:13:19 PM8/23/12
to Cython-devel, Cython-users
Hello everyone,

on behalf of the Cython project team, I'm proud to announce the release of
our third beta of Cython 0.17. This is our first and hopefully last release
candidate for 0.17, another major step forward in the development of the
language that will make life easier for a lot of users, rounds up some
rough edges of the compiler and adds (preliminary) support for CPython 3.3
and PyPy.

Download: http://cython.org/release/Cython-0.17b3.tar.gz

Release notes: http://wiki.cython.org/ReleaseNotes-0.17

Documentation: http://docs.cython.org/


Major features of this release include:

* vastly improved integration with the C++ STL containers

http://docs.cython.org/src/userguide/wrapping_CPlusPlus.html#standard-library

http://docs.cython.org/src/tutorial/strings.html#c-strings

* "yield from" delegation between generators (PEP 380)

http://www.python.org/dev/peps/pep-0380/

* alpha quality support for PyPy (via cpyext)

http://docs.cython.org/src/userguide/pypy.html


Several other features and improvements are listed in the release notes:

http://wiki.cython.org/ReleaseNotes-0.17


Have fun,

Stefan

Neal Becker

unread,
Aug 28, 2012, 7:07:59 AM8/28/12
to cython...@googlegroups.com, cython...@python.org
All built/tested OK on fedora (devel).

Build log is here:
http://kojipkgs.fedoraproject.org//work/tasks/8252/4428252/build.log

Should I be concerened about these excluded tests?

Ran 6865 tests in 1601.636s
OK
Following tests excluded because of missing dependencies on your system:
memoryview.memoryviewattrs
memoryview.numpy_memoryview
run.numpy_ValueError_T172
run.numpy_bufacc_T155
run.numpy_cimport
run.numpy_parallel
run.numpy_test

Stefan Behnel

unread,
Aug 28, 2012, 7:18:46 AM8/28/12
to cython...@googlegroups.com
Neal Becker, 28.08.2012 13:07:
It means that you don't have NumPy installed. I assume there's a Fedora
package of NumPy, so if it's not too much hassle for you, it would help if
you could include them.

Stefan

Neal Becker

unread,
Aug 28, 2012, 12:42:34 PM8/28/12
to cython...@googlegroups.com, cython...@python.org
OK, this time including numpy in the build, it appears all tests passed OK.

Stefan Behnel

unread,
Aug 28, 2012, 1:00:26 PM8/28/12
to cython...@googlegroups.com, cython...@python.org
Neal Becker, 28.08.2012 18:42:
Thanks for testing!

Stefan

Czarek Tomczak

unread,
Aug 28, 2012, 4:37:01 PM8/28/12
to cython...@googlegroups.com, Cython-devel, stef...@behnel.de
I am just testing cefpython using 0.17 beta3 rc, it works fine under Python 2.7, but when I try to compile under Python 3.2 I get errors, it happens to functions that are exported using 'public' declaration, see errors below (attaching full logs: cython017beta3rc_python32.txt).


C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./../ -I./../pyinclude
/ -Id:\python32\include -Id:\python32\PC /Tp../clienthandler.cpp /Fobuild\temp.win32-3.2\Release\../clienthandler.obj /EHsc
clienthandler.cpp
d:\cefpython\src\setup/cefpython.h(15) : error C3646: 'RequestHandler_OnBeforeBrowse' : unknown override specifier
d:\cefpython\src\setup/cefpython.h(15) : error C2091: function returns function
d:\cefpython\src\setup/cefpython.h(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\cefpython\src\setup/cefpython.h(16) : error C3646: 'RequestHandler_OnBeforeResourceLoad' : unknown override specifier
d:\cefpython\src\setup/cefpython.h(16) : error C2091: function returns function
d:\cefpython\src\setup/cefpython.h(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\cefpython\src\setup/cefpython.h(16) : error C2556: 'int (__cdecl *DL_IMPORT(bool))(CefRefPtr<T>,CefRefPtr<CefRequest>
,CefString &,CefRefPtr<CefStreamReader> &,CefRefPtr<CefResponse>,int)' : overloaded function differs only by return type
from 'int (__cdecl *DL_IMPORT(bool))(CefRefPtr<T>,CefRefPtr<CefFrame>,CefRefPtr<CefRequest>,cef_handler_navtype_t,bool)
'
with
[
T=CefBrowser
]
d:\cefpython\src\setup/cefpython.h(15) : see declaration of 'DL_IMPORT'
d:\cefpython\src\setup/cefpython.h(16) : error C2371: 'DL_IMPORT' : redefinition; different basic types
d:\cefpython\src\setup/cefpython.h(15) : see declaration of 'DL_IMPORT'

 
Function prototypes in `cefpython.h':


__PYX_EXTERN_C DL_IMPORT(bool) RequestHandler_OnBeforeBrowse(CefRefPtr<CefBrowser>, CefRefPtr<CefFrame>, CefRefPtr<CefRequest>, enum cef_handler_navtype_t, bool);
__PYX_EXTERN_C DL_IMPORT(bool) RequestHandler_OnBeforeResourceLoad(CefRefPtr<CefBrowser>, CefRefPtr<CefRequest>, CefString &, CefRefPtr<CefStreamReader> &, CefRefPtr<CefResponse>, int);
__PYX_EXTERN_C DL_IMPORT(void) RequestHandler_OnResourceRedirect(CefRefPtr<CefBrowser>, CefString &, CefString &);
__PYX_EXTERN_C DL_IMPORT(void) RequestHandler_OnResourceResponse(CefRefPtr<CefBrowser>, CefString &, CefRefPtr<CefResponse>, CefRefPtr<CefContentFilter> &);
__PYX_EXTERN_C DL_IMPORT(bool) RequestHandler_OnProtocolExecution(CefRefPtr<CefBrowser>, CefString &, bool &);
__PYX_EXTERN_C DL_IMPORT(bool) RequestHandler_GetDownloadHandler(CefRefPtr<CefBrowser>, CefString &, CefString &, int64, CefRefPtr<CefDownloadHandler> &);
__PYX_EXTERN_C DL_IMPORT(bool) RequestHandler_GetAuthCredentials(CefRefPtr<CefBrowser>, bool, CefString &, int, CefString &, CefString &, CefString &, CefString &);
__PYX_EXTERN_C DL_IMPORT(CefRefPtr<CefCookieManager>) RequestHandler_GetCookieManager(CefRefPtr<CefBrowser>, CefString &);



Cheers,
Czarek. 
cython017beta3rc_python32.txt

Czarek Tomczak

unread,
Aug 29, 2012, 10:23:24 AM8/29/12
to cython...@googlegroups.com, Cython-devel, stef...@behnel.de
I got rid of that error in Python 3.2, the solution was to compile clienthandler.cpp separately by creating a VS project and include only the resulting .lib.

But now I got another error:

C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:./ "/LIBPATH:c:/Progr
am Files/Microsoft SDKs/Windows/v7.1/Lib/" /LIBPATH:./../httpauth/Release/ /LIBPATH:./../v8functionhandler/Release/ /LIB
PATH:./../clienthandler/Release/ /LIBPATH:d:\python32\libs /LIBPATH:d:\python32\PCbuild libcef.lib libcef_dll_wrapper.li
b User32.lib httpauth.lib v8functionhandler.lib clienthandler.lib /EXPORT:PyInit_cefpython build\temp.win32-3.2\Release\
cefpython.obj /OUT:D:\cefpython\src\setup\cefpython.pyd /IMPLIB:build\temp.win32-3.2\Release\cefpython.lib /MANIFESTFILE
:build\temp.win32-3.2\Release\cefpython.pyd.manifest /NODEFAULTLIB:libcmt /NODEFAULTLIB:msvcprt /ignore:4217
LINK : fatal error LNK1104: cannot open file 'python27.lib'

This is happening when compiling using Python 3.2.
I've found a fix for that too, I had to rename D:\python32\libs\python32.lib to D:\python32\libs\python27.lib - then it works :-) That was easy one.

Cheers,
Czarek.

On Tuesday, August 28, 2012 9:37:01 PM UTC+1, Czarek Tomczak wrote:
I am just testing cefpython using 0.17 beta3 rc, it works fine under Python 2.7, but when I try to compile under Python 3.2 I get errors, it happens to functions that are exported using 'public' declaration, see errors below (attaching full logs: cython017beta3rc_python32.txt).
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./../ -I./../pyinclude
/ -Id:\python32\include -Id:\python32\PC /Tp../clienthandler.cpp /Fobuild\temp.win32-3.2\Release\../clienthandler.obj /EHsc
clienthandler.cpp
d:\cefpython\src\setup/cefpython.h(15) : error C3646: 'RequestHandler_OnBeforeBrowse' : unknown override specifier
.......
 
Reply all
Reply to author
Forward
0 new messages