From owner-freebsd-python@freebsd.org Wed Jan 6 22:30:08 2021 Return-Path: Delivered-To: freebsd-python@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 637A24E15E8 for ; Wed, 6 Jan 2021 22:30:08 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ultimatedns.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DB3vz6SGMz3PpN for ; Wed, 6 Jan 2021 22:30:07 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 106MU8ti030270 for ; Wed, 6 Jan 2021 14:30:14 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) MIME-Version: 1.0 Date: Wed, 06 Jan 2021 14:30:08 -0800 From: Chris To: freebsd-python Subject: 24:10: fatal error: 'Python.h' file not found (how to prepend FLAVORDIR?) User-Agent: UDNSMS/17.0 Message-ID: <2bef583640f36ada803c344ac154e0a2@bsdforge.com> X-Sender: bsd-lists@bsdforge.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DB3vz6SGMz3PpN X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US]; local_wl_ip(0.00)[24.113.41.81] X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jan 2021 22:30:08 -0000 OK I'm attempting to upgrade a port' source to Python3. One of the source files has the following: #include 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 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