Fix cython to work on platforms other than latest Ubuntu.
This commit is contained in:
parent
738f7f860c
commit
16b9a52235
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue