Fix cython to work on platforms other than latest Ubuntu.

This commit is contained in:
Jussi Pakkanen 2016-02-14 18:32:58 +02:00
parent 738f7f860c
commit 16b9a52235
2 changed files with 2 additions and 8 deletions

View File

@ -1,9 +1,3 @@
pxd_c = custom_target('cstorer_pxd',
output : 'cstorer_pxd.c',
input : 'cstorer.pxd',
command : [cython, '@INPUT@', '-o', '@OUTPUT@'],
)
pyx_c = custom_target('storer_pyx',
output : 'storer_pyx.c',
input : 'storer.pyx',
@ -11,7 +5,7 @@ pyx_c = custom_target('storer_pyx',
)
slib = shared_library('storer',
'storer.c', pxd_c, pyx_c,
'storer.c', pyx_c,
name_prefix : '',
dependencies : py3_dep)

View File

@ -12,5 +12,5 @@ cdef class Storer:
cpdef int get_value(self):
return cstorer.storer_get_value(self._c_storer)
cpdef void set_value(self, int value):
cpdef set_value(self, int value):
cstorer.storer_set_value(self._c_storer, value)