jeffdaily / parasail-python

Python bindings for the parasail C library.
Other
87 stars 17 forks source link

Shipping parasail headers inside the Python egg? #51

Closed jvkersch closed 1 year ago

jvkersch commented 4 years ago

Would it be possible to ship the Parasail headers along with the Python package? That would make it possible for other packages with C or Cython extensions to list this package as a dependency, and build against the headers. Right now, this is a manual step.

I have such a package here: https://github.com/enthought/vpsearch/

The headers could be added to the MANIFEST.in and the package data, and there could be a small Python entry point to list paths to the headers and library files:

import parasail

parasail.get_includes()  # returns the base include dir
parasail.get_libs()  # returns the library with the parasail shared object file

I'd be happy to contribute a PR, if that's useful.

jeffdaily commented 3 years ago

Sorry for the extremely delayed response. This seems like a useful feature. Thanks for the suggestion.

jvkersch commented 3 years ago

Thanks for the follow-up @jeffdaily !