Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example repo for a cython package that cimports h3-py #373

Open
ajfriend opened this issue May 19, 2024 · 2 comments
Open

Example repo for a cython package that cimports h3-py #373

ajfriend opened this issue May 19, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@ajfriend
Copy link
Contributor

I think it would be helpful to provide a demo repository for setting up a Python package that cimports the Cython bits of h3-py. We have an example of doing this for a single file in https://github.com/uber/h3-py/blob/master/tests/test_cython/cython_example.pyx

Having an example for a package would help users who want to write fast Cython code with h3 functions outside of the main h3-py repo.

@ajfriend ajfriend changed the title Example repo for a cython package that imports h3-py Example repo for a cython package that cimports h3-py May 19, 2024
@ajfriend
Copy link
Contributor Author

It would be nice to have a "modern" build as well: pyproject.toml and maybe something along the lines of https://learn.scientific-python.org/development/guides/packaging-compiled/

@ajfriend ajfriend added the help wanted Extra attention is needed label May 19, 2024
@ajfriend
Copy link
Contributor Author

I made a sloppy first attempt here: https://github.com/ajfriend/h3_example_package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant