Skip to content

Support pure C/CPP extensions #48

@vhdirk

Description

@vhdirk

Hi!

I'm trying to port a cython extension using hatch-cython. But contrary to all examples, it's composed completely in C, rather than pyx/pxd/py files. This is the one I'm trying to port: https://github.com/hbldh/b2ac/blob/master/setup.py

Do you have any suggestions/ides on how you would do this?

If I add c to the precompiled extensions and just replace the 'sources' parameter for setuptools Extension in the generated setup.py, it seems to work. Does the order of the files in 'sources' matter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions