Skip to content

Instantly share code, notes, and snippets.

Created September 30, 2010 10:55
Show Gist options
  • Save anonymous/604394 to your computer and use it in GitHub Desktop.
Save anonymous/604394 to your computer and use it in GitHub Desktop.
Cythoning
debian@debian:~/dev/zeromq/rpyzmq$ rm zmq/*.c
debian@debian:~/dev/zeromq/rpyzmq$ python setup.py build
running build
running build_py
running build_ext
cythoning zmq/_zmq.pyx to zmq/_zmq.c
building 'zmq._zmq' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.5 -c zmq/_zmq.c -o build/temp.linux-i686-2.5/zmq/_zmq.o
zmq/_zmq.c: In function ‘__pyx_f_3zmq_7buffers_is_buffer’:
zmq/_zmq.c:11572: warning: implicit declaration of function ‘PyObject_CheckBuffer’
zmq/_zmq.c: In function ‘__pyx_f_3zmq_7buffers_asbuffer’:
zmq/_zmq.c:11731: warning: implicit declaration of function ‘PyObject_GetBuffer’
zmq/_zmq.c:11805: warning: implicit declaration of function ‘PyBuffer_Release’
zmq/_zmq.c: In function ‘__pyx_f_3zmq_7buffers_frombuffer_3’:
zmq/_zmq.c:12302: warning: implicit declaration of function ‘PyBuffer_FillInfo’
zmq/_zmq.c:12330: warning: implicit declaration of function ‘PyMemoryView_FromBuffer’
zmq/_zmq.c:12330: warning: assignment makes pointer from integer without a cast
zmq/_zmq.c: In function ‘__pyx_f_3zmq_7buffers_viewfromobject’:
zmq/_zmq.c:12640: warning: implicit declaration of function ‘PyMemoryView_FromObject’
zmq/_zmq.c:12640: warning: assignment makes pointer from integer without a cast
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.5/zmq/_zmq.o -L/usr/local/lib -lzmq -o build/lib.linux-i686-2.5/zmq/_zmq.so
cythoning zmq/devices.pyx to zmq/devices.c
building 'zmq.devices' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.5 -c zmq/devices.c -o build/temp.linux-i686-2.5/zmq/devices.o
zmq/devices.c: In function ‘__pyx_f_3zmq_7buffers_is_buffer’:
zmq/devices.c:4595: warning: implicit declaration of function ‘PyObject_CheckBuffer’
zmq/devices.c: In function ‘__pyx_f_3zmq_7buffers_asbuffer’:
zmq/devices.c:4754: warning: implicit declaration of function ‘PyObject_GetBuffer’
zmq/devices.c:4828: warning: implicit declaration of function ‘PyBuffer_Release’
zmq/devices.c: In function ‘__pyx_f_3zmq_7buffers_frombuffer_3’:
zmq/devices.c:5325: warning: implicit declaration of function ‘PyBuffer_FillInfo’
zmq/devices.c:5353: warning: implicit declaration of function ‘PyMemoryView_FromBuffer’
zmq/devices.c:5353: warning: assignment makes pointer from integer without a cast
zmq/devices.c: In function ‘__pyx_f_3zmq_7buffers_viewfromobject’:
zmq/devices.c:5663: warning: implicit declaration of function ‘PyMemoryView_FromObject’
zmq/devices.c:5663: warning: assignment makes pointer from integer without a cast
zmq/devices.c: At top level:
zmq/devices.c:2729: warning: ‘__pyx_f_3zmq_7devices_z_free’ defined but not used
zmq/devices.c:5769: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_13tracker_queue___get__’ defined but not used
zmq/devices.c:5785: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_13tracker_queue___set__’ defined but not used
zmq/devices.c:5800: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_13tracker_queue___del__’ defined but not used
zmq/devices.c:5823: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_7tracker___get__’ defined but not used
zmq/devices.c:5839: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_7tracker___set__’ defined but not used
zmq/devices.c:5854: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_7tracker___del__’ defined but not used
zmq/devices.c:5877: warning: ‘__pyx_pf_3zmq_4_zmq_7Context_6closed___get__’ defined but not used
zmq/devices.c:5893: warning: ‘__pyx_pf_3zmq_4_zmq_7Context_6closed___set__’ defined but not used
zmq/devices.c:5908: warning: ‘__pyx_pf_3zmq_4_zmq_7Context_6closed___del__’ defined but not used
zmq/devices.c:5931: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_11socket_type___get__’ defined but not used
zmq/devices.c:5955: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_11socket_type___set__’ defined but not used
zmq/devices.c:5981: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_7context___get__’ defined but not used
zmq/devices.c:5997: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_7context___set__’ defined but not used
zmq/devices.c:6018: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_7context___del__’ defined but not used
zmq/devices.c:6041: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_6closed___get__’ defined but not used
zmq/devices.c:6057: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_6closed___set__’ defined but not used
zmq/devices.c:6072: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_6closed___del__’ defined but not used
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.5/zmq/devices.o -L/usr/local/lib -lzmq -o build/lib.linux-i686-2.5/zmq/devices.so
git diff zmq/_zmq.c
...
<snip>
...
@@ -11721,7 +11721,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3zmq_7buffers_asbuffer(PyObject *__pyx_v_
}
__pyx_L5:;
- /* "/Users/bgranger/Documents/Computation/zeromq/pyzmq/zmq/buffers.pxd":124
+ /* "/home/debian/dev/zeromq/rpyzmq/zmq/buffers.pxd":124
* if format:
* flags |= PyBUF_FORMAT
* PyObject_GetBuffer(ob, &view, flags) # <<<<<<<<<<<<<<
@@ -11730,7 +11730,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3zmq_7buffers_asbuffer(PyObject *__pyx_v_
*/
__pyx_t_1 = PyObject_GetBuffer(__pyx_v_ob, (&__pyx_v_view), __pyx_v_flags); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __p
- /* "/Users/bgranger/Documents/Computation/zeromq/pyzmq/zmq/buffers.pxd":125
+ /* "/home/debian/dev/zeromq/rpyzmq/zmq/buffers.pxd":125
* flags |= PyBUF_FORMAT
* PyObject_GetBuffer(ob, &view, flags)
* bptr = view.buf # <<<<<<<<<<<<<<
@@ -11739,7 +11739,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3zmq_7buffers_asbuffer(PyObject *__pyx_v_
*/
__pyx_v_bptr = __pyx_v_view.buf;
- /* "/Users/bgranger/Documents/Computation/zeromq/pyzmq/zmq/buffers.pxd":126
+ /* "/home/debian/dev/zeromq/rpyzmq/zmq/buffers.pxd":126
* PyObject_GetBuffer(ob, &view, flags)
* bptr = view.buf
* blen = view.len # <<<<<<<<<<<<<<
@@ -11748,7 +11748,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3zmq_7buffers_asbuffer(PyObject *__pyx_v_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment