[Cython] Automatically add include_dirs for externs (#1654)

Robert Bradshaw robertwb at math.washington.edu
Wed Apr 12 17:11:37 EDT 2017


I'm in favor of the idea (basically attempting to resolve header files
relative to the cython file including them and transitively passing
these paths to modules cimporting them); haven't had time to look at
the code yet or think if there could be negative implications.

On Tue, Apr 11, 2017 at 3:00 AM, Jeroen Demeyer <jdemeyer at cage.ugent.be> wrote:
> Dear Cython developers,
>
> as part of a big effort to make SageMath less monolithic and make it part of
> a larger ecosystem, we are splitting off certain modules from SageMath as
> separate packages. cysignals was an early example of this.
>
> Given that we use Cython a lot, it is really important for us that
> inter-package C and Cython interfaces work well. One blocking issue is
> https://github.com/cython/cython/pull/1654
>
> That PR improves the way how "cdef extern from" files are found: it will
> automatically add a disutils include_dirs argument to the Extension if it's
> needed to find to extern file. It is needed whenever you have a package
> which installs .pxd and .h files in site-packages.
>
>
> Cheers,
> Jeroen.
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> https://mail.python.org/mailman/listinfo/cython-devel


More information about the cython-devel mailing list