From owner-freebsd-python@freebsd.org Wed Mar 4 02:38:33 2020 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 48F15261EB1 for ; Wed, 4 Mar 2020 02:38:33 +0000 (UTC) (envelope-from portmaster@BSDforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ultimatedns.net", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48XJ3C0TNNz4S2H; Wed, 4 Mar 2020 02:38:30 +0000 (UTC) (envelope-from portmaster@BSDforge.com) Received: from udns.ultimatedns.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by udns.ultimatedns.net (8.15.2/8.15.2) with ESMTPS id 0242ctge019378 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 3 Mar 2020 18:39:01 -0800 (PST) (envelope-from portmaster@BSDforge.com) X-Mailer: Cypht MIME-Version: 1.0 Cc: freebsd-python In-Reply-To: From: Chris Reply-To: portmaster@BSDforge.com To: Subject: Re: Including the correct (python version) include path Date: Tue, 03 Mar 2020 18:39:01 -0800 Message-Id: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48XJ3C0TNNz4S2H X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of portmaster@BSDforge.com has no SPF policy when checking 24.113.41.81) smtp.mailfrom=portmaster@BSDforge.com X-Spamd-Result: default: False [-1.34 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[portmaster@BSDforge.com]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.987,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[BSDforge.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; AUTH_NA(1.00)[]; IP_SCORE(-0.28)[ip: (-0.51), ipnet: 24.113.0.0/16(-0.26), asn: 11404(-0.58), country: US(-0.05)]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.98)[-0.978,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 02:38:33 -0000 On Wed, 4 Mar 2020 12:41:59 +1100 koobs@FreeBSD=2Eorg said > On 4/03/2020 5:58 am, Chris wrote: > > I'm dragging some code into the 21st century=2E I'm happy to > > say the python37 AST now gives it a clean bill of health=2E > > But I'm (currently) only able to build it by prepending > > the python && python-version to the > > #include > > line=2E > > USES=3D python:3=2E5+ > > doesn't seem to populate -I for my needs=2E If the user has > > 3, or 4 versions it seems harder=2E Not to mention if malloc > > option was added, which appends an m to ${PYTHON_SUFFIX} > > How does everyone deal with this sort of thing? > >=20 > > Thank you for all your time, and consideration=2E > >=20 > > --Chris > >=20 > >=20 >=20 > USES=3Dlocalbase[:ldflags] or set them (CFLAGS+=3D, LDFLAGS+=3D) individu= ally=2E >=20 > If you have any other issues or need help, jump on #freebsd-python on=20 > freenode IRC You're awesome koobs! Your suggestion makes perfect sense=2E I may have to start monitoring #freebsd-python Thanks! --Chris FreeBSD 14=2E0-FUTURE #0=2E000 cray256