Xpra: Ticket #74: svn 471: Error converting Pyrex file to C: bindings.pyx:324:50: Expected ')'

svn 471 does not build.


set -e
set -x
REV=$(git describe --dirty --tags)
REV2=$(git describe --dirty --tags|sed 's/-dirty$//')
SVNREV=$(git svn find-rev $REV2)
ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH)
cd src
rm -rf build install
python make_constants_pxi.py wimpiggy/lowlevel/constants.txt wimpiggy/lowlevel/constants.pxi
CFLAGS=-O0 python setup.py install --home=install
rm -fr "$DEST"
mv install "$DEST"
rm -fr build

fails with

creating build/lib.linux-x86_64-2.6/xpra/win32
copying xpra/win32/__init__.py -> build/lib.linux-x86_64-2.6/xpra/win32
copying xpra/win32/win32_tray.py -> build/lib.linux-x86_64-2.6/xpra/win32
copying xpra/win32/win32_NotifyIcon.py -> build/lib.linux-x86_64-2.6/xpra/win32
copying xpra/win32/win32_balloon.py -> build/lib.linux-x86_64-2.6/xpra/win32
copying xpra/win32/gui.py -> build/lib.linux-x86_64-2.6/xpra/win32
creating build/lib.linux-x86_64-2.6/xpra/darwin
copying xpra/darwin/__init__.py -> build/lib.linux-x86_64-2.6/xpra/darwin
copying xpra/darwin/gui.py -> build/lib.linux-x86_64-2.6/xpra/darwin
running build_ext
cythoning wimpiggy/lowlevel/bindings.pyx to wimpiggy/lowlevel/bindings.c
Error converting Pyrex file to C:
    int XGrabKey(Display * display, int keycode, unsigned int modifiers,
                 Window grab_window, Bool owner_events,
                 int pointer_mode, int keyboard_mode)
    int XUngrabKey(Display * display, int keycode, unsigned int modifiers,
                   Window grab_window)
    int XQueryKeymap(Display * display, char [32] keys_return)
/home/lindi/scm/xpra/src/wimpiggy/lowlevel/bindings.pyx:324:50: Expected ')'
building 'wimpiggy.lowlevel.bindings' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/wimpiggy
creating build/temp.linux-x86_64-2.6/wimpiggy/lowlevel
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -O0 -fPIC -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pygtk-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/lib/gtk-2.0/include -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/python2.6 -c wimpiggy/lowlevel/bindings.c -o build/temp.linux-x86_64-2.6/wimpiggy/lowlevel/bindings.o
wimpiggy/lowlevel/bindings.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1

Tue, 31 Jan 2012 11:31:17 GMT - Antoine Martin: status changed; resolution set

It does build with recent versions of Cython, what I may do is add a version check to give a more helpful error message.

Tue, 31 Jan 2012 11:48:59 GMT - Antoine Martin:

r472 will check for version 0.14 or later (which I think is right)

Mon, 20 Feb 2012 19:22:09 GMT - Antoine Martin: component, milestone changed; version set

Sat, 23 Jan 2021 04:44:49 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/74