'convert .pyx extensions to .c'

def _convert_pyx_sources_to_c(self):

    def pyx_to_c(source):
        if source.endswith('.pyx'):
            source = (source[:(-4)] + '.c')
        return source
    self.sources = list(map(pyx_to_c, self.sources))
