Including the correct (python version) include path

Kubilay Kocak koobs at FreeBSD.org
Wed Mar 4 01:42:07 UTC 2020


On 4/03/2020 5:58 am, Chris wrote:
> I'm dragging some code into the 21st century. I'm happy to
> say the python37 AST now gives it a clean bill of health.
> But I'm (currently) only able to build it by prepending
> the python && python-version to the
> #include <Python.h>
> line.
> USES= python:3.5+
> doesn't seem to populate -I for my needs. If the user has
> 3, or 4 versions it seems harder. Not to mention if malloc
> option was added, which appends an m to ${PYTHON_SUFFIX}
> How does everyone deal with this sort of thing?
> 
> Thank you for all your time, and consideration.
> 
> --Chris
> 
> 
> _______________________________________________
> freebsd-python at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-python
> To unsubscribe, send any mail to "freebsd-python-unsubscribe at freebsd.org"

USES=localbase[:ldflags] or set them (CFLAGS+=, LDFLAGS+=) individually.

If you have any other issues or need help, jump on #freebsd-python on 
freenode IRC


More information about the freebsd-python mailing list