From owner-freebsd-ports@freebsd.org Thu Sep 13 19:29:06 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2E691096FFF for ; Thu, 13 Sep 2018 19:29:06 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A2997F646; Thu, 13 Sep 2018 19:29:06 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 72D6E10EA7; Thu, 13 Sep 2018 19:29:06 +0000 (UTC) From: Jan Beich To: Robert Huff Cc: Ports FreeBSD Subject: Re: how to enforce one version of python References: <20180911145151.zgyeaiobnvkuo2rg@ivaldir.net> <4cd79546-c301-4ab7-13eb-3233736953f5@yandex.ru> <287384aa-360d-683c-e6a6-cfe07b5a1838@yandex.ru> <23449.1943.75477.655239@jerusalem.litteratus.org> <773bfa24-909b-360a-783b-c1b8b3695d70@zyxst.net> <23450.37596.958990.910011@jerusalem.litteratus.org> Date: Thu, 13 Sep 2018 21:26:35 +0200 Message-ID: <36ud-19n8-wny@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2018 19:29:06 -0000 Robert Huff writes: > Daniel Nebdal writes: > >> The fun >> part is the combination of 2-only holdouts and new 3-only code, >> which is why it's easy to end up with both installed. > > _This_ is really annoying. I try to keep my systems with exactly > what they need installed, to reduce both bloat and possibly security > issues. There's one Perl installation; having two Python versions - > and trying to keep track between them - makes me use a lot of bad > language. Did you know www/firefox requires *both* Python versions to build? ;) Mk/bsd.gecko.mk: USES+= ... python:2.7,build ... .if ${MOZILLA_VER:R:R} >= 61 BUILD_DEPENDS+= ${LOCALBASE}/bin/python${PYTHON3_DEFAULT}:lang/python${PYTHON3_DEFAULT:S/.//g} MOZ_EXPORT+= PYTHON3="${LOCALBASE}/bin/python${PYTHON3_DEFAULT}" .endif https://www.mail-archive.com/dev-platform@lists.mozilla.org/msg24187.html