From owner-freebsd-ports@freebsd.org Thu Sep 13 15:25:58 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 C50921091053 for ; Thu, 13 Sep 2018 15:25:57 +0000 (UTC) (envelope-from dnebdal@gmail.com) Received: from mail-yw1-xc31.google.com (mail-yw1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4238175C62 for ; Thu, 13 Sep 2018 15:25:57 +0000 (UTC) (envelope-from dnebdal@gmail.com) Received: by mail-yw1-xc31.google.com with SMTP id y134-v6so1314887ywg.1 for ; Thu, 13 Sep 2018 08:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5aBwFpvMYimAQyc/QRTfwlj4qNEjJlSg+pY3GfbXnD0=; b=kAIhLi7zpYxHWw/10IGYojEHXhW9vHzILJdSIe/km3MtA858YhNA5baEAnEoKd3Kb1 yS4FH7PSIT8JujrHc3kpJlwnqOdEBOs1Tzpc+Ld7QVscJRMX/kZPSgxzkMVMQlcuWVSA 6ceiqx+mwT5aGoRYwi26xy7MpbtrDclGf7hj9DrimWdy6OlDw5UMNgGA02ZRvmjTTyTc 2vBBZRTW+aGm3zapRG94YT9MMa6T2YK3A2YWB2TWAfVo4uQJaeqFQHhfyLnGmlXWd+Cj SwejwJkUZB3Y3tzmmh/9ZT978TOLpip+9ONvWunHLwTwgMcCXsM3u4RibA/wOjI2aSQ8 cUag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5aBwFpvMYimAQyc/QRTfwlj4qNEjJlSg+pY3GfbXnD0=; b=QAr4fA3OV+fo9rWTMTbTvnNqrwzLvfPUxxWUuDjRJoaBJkkXfdIBdZLmiTBQYtjL8W hkUW2ubMEDRLpY0dBY0oZFAfMDH5+bgHGoj8Dr7F+wJruhqk8HW8229PRg+kgp4Z+SgF qKgB2hRSvvHeSyNTd7P2CgpI3d9Po11ZbqAszr00wLyyWSn/Xwbu+ksJhRu8JtQVuA6y JubzVKJPlfyrdM+ISZZhXtBqwwBkQHFcA+MNTaNrWl/cbGThkldJlJ4NeZ2ySJ4MuGfg 5QPsO1Z+g1evOrJzp2SXKzzTz5d8gHc8ByVIyEOSyTRUv6JZ3yP7UmRsjx8iMAA0lC5v J0bg== X-Gm-Message-State: APzg51AXXkArqZ+jDoQ2AOOz0yTyZ2hvuhtdJM2TY03qC53JmDzi7aJp /C4BM6bP6CsoVtS21um4x/gY+OdMMDYsvhe1t3k= X-Google-Smtp-Source: ANB0VdbQnuM1ZSKSPO6+EdZBIzJ9Gmxl0EeirvF8UvLGrE5NwxIt1MmVpJerbbbZGhS6KFKJPLMcFD+y3XXW73b2fyk= X-Received: by 2002:a0d:c643:: with SMTP id i64-v6mr3788603ywd.467.1536852356359; Thu, 13 Sep 2018 08:25:56 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <773bfa24-909b-360a-783b-c1b8b3695d70@zyxst.net> From: Daniel Nebdal Date: Thu, 13 Sep 2018 16:34:19 +0200 Message-ID: Subject: Re: how to enforce one version of python To: tech-lists@zyxst.net Cc: Robert Huff , Ports FreeBSD Content-Type: text/plain; charset="UTF-8" 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 15:25:58 -0000 On Wed, 12 Sep 2018 at 19:35, tech-lists wrote: > > On 12/09/2018 13:33, Robert Huff wrote: > > How many ports_require_ python 3? > > How many ports_require_ python 2? > > yeah, I'd like to know too. I mean, I've never installed python as like > requiring it to program - it's installed as a dependency of other stuff > I want to actually run. And I thought python2 and 3 are actually > different languages rather than simply versions. Might be wrong though. > > tjhanks, > > -- > J. They are kind of both, which is both a blessing and a curse. With a bit of care you can write code that's legal in both, and even if you don't, the automatic 2to3 converter is often good enough. Thus, many packages support being configured for either version from the same source, which is why it's kind of a compile-time decision. 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. At least there's a definite sunset for 2, so it will _eventually_ work itself out. -- Daniel Nebdal