Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jan 2021 14:30:08 -0800
From:      Chris <bsd-lists@bsdforge.com>
To:        freebsd-python <freebsd-python@freebsd.org>
Subject:   24:10: fatal error: 'Python.h' file not found (how to prepend FLAVORDIR?)
Message-ID:  <2bef583640f36ada803c344ac154e0a2@bsdforge.com>

next in thread | raw e-mail | index | archive | help
OK
I'm attempting to upgrade a port' source to
Python3. One of the source files has the following:
#include <Python.h>
which is reasonable enough. except it returns the following:
fatal error: 'Python.h' file not found
The jail(8) system I'm testing this on has 3.7 which of course
provides: include/python3.7m/
changing the include to:
#include <python3.7m/Python.h>
solves this. But this is not a tenable solution. Does the ports
framework provide for this? I think FLAVOR only returns py(flavor.number)
not python(flavor.number)

Thanks for any insight.

--Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2bef583640f36ada803c344ac154e0a2>