tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Package that needs cython to get compiled



On Thu, Oct 18, 2012 at 06:38:52PM -0300, Silas Silva wrote:
> 1. How is a Makefile of a package that needs cython to get built?
>    math/py-pytables make:
> 
>     BUILDLINK_API_DEPENDS.pycython+= ${PYPKGPREFIX}-cython>=0.13
>     .include "../../devel/py-cython/buildlink3.mk"
> 
> What about that?

Looks ok. What is your question, exactly?

> 2. The package looks for Makefile, to compile the module, but it should
>    use setup.py instead, that calls cython and then gcc to compile the
>    resulting C code.  How to make it use setup.py?  Is it looking for
>    Makefile because url2pkg wrote "USE_LANGUAGES= c" in it?

Include lang/python/egg.mk or lang/python/distutils.mk, depending on
what upstream's method is. In case of doubt, try them in this order.
Read the files for more information.
 Thomas


Home | Main Index | Thread Index | Old Index