From nobody Thu Nov 18 01:37:30 2021 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 864E6189A5C0; Thu, 18 Nov 2021 01:37:35 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hvj8v31zbz4twZ; Thu, 18 Nov 2021 01:37:35 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pf1-x42d.google.com with SMTP id o4so4314161pfp.13; Wed, 17 Nov 2021 17:37:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:reply-to:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=IA1Ps6tuBnGcdyUaooP0qD4h1SivK2yPYP+wIzzNObE=; b=iwQzIAl8CA7bmiQSZrPN0Iv7EFRL1wvW++V/JY38CT9ELy++iglj18jUGUuOSsUnxy 03DpdJsGOJL13WWGoOpz97uGfMw2R/nDBQgPX6Yv1isuBHkN0NDlKhgQrOY3C0LD1SH/ hFC3PHMFtM6RUWQ9vdXdZ8JuzPiauIrjci8JGJ5hc1JhblZ4znzfaQI5b1Nmv5EtWj2m +kisCdMOjVeSTUBarBHRbIPfZursMNBidw3/DlVoTN61bkyjdqrXVZkQafzw/fLYIER2 amj/cZWeFo1bYtXHzU4K0Eds1ypTCq37cDfZD5cw2c1lh67jtdUJYelsqXedanynGEdD H6Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :reply-to:subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=IA1Ps6tuBnGcdyUaooP0qD4h1SivK2yPYP+wIzzNObE=; b=lsZK0gZyTTfmVQX1K2ovR1J4nc/c0uj2TTGZk7TsEhUtfXqLBrL9HEiBUKlYPH+YRh UPrNRd1i8DnchSWeKEFSHFHz3NO/xK1VarDQu+03VOmJN39HwFd99tvcAbzEvQbkPJ+d xgqD9aDyCvfjyugvvZ6gpOhYOZ6HRtwmXVU/c1uTirRuDXALmz/CjI/QBOlDi++GhGfO Shhae9yYg2K3PpFYeV5XHtHYtNg8ncvrswSbETvXPXb8wiZeYTg/HqxDYQIajW2hORk5 f6ffcULTkB43jDY+IRmKKVHeMdUm7a2pCcPCgAQngPCP5fXYfqZzc3HKJpvC/vrnFgUb Vrew== X-Gm-Message-State: AOAM5306E5xS1MJoyMWvy3pWE1J8jxMyjeG+L5v6VFUTpmlBujcFfMNj SjdQ67OEcJt2MkNOyd4He3nOPzMhNxE= X-Google-Smtp-Source: ABdhPJw8TccAhOCAgAOBBgKIhdTuSbuXCVRbaCTZO2qVb07LcT0spf5eaFH8lztU40ic/58o9zVrSA== X-Received: by 2002:a63:8943:: with SMTP id v64mr205612pgd.324.1637199454205; Wed, 17 Nov 2021 17:37:34 -0800 (PST) Received: from ?IPV6:2403:5807:1b:1:f018:fe2a:b66a:c857? (2403-5807-1b-1-f018-fe2a-b66a-c857.ip6.aussiebb.net. [2403:5807:1b:1:f018:fe2a:b66a:c857]) by smtp.gmail.com with ESMTPSA id k1sm906868pfu.31.2021.11.17.17.37.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Nov 2021 17:37:33 -0800 (PST) Message-ID: <56cb1da0-311a-d498-f7a0-db2c0d11dca4@FreeBSD.org> Date: Thu, 18 Nov 2021 12:37:30 +1100 List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Thunderbird/96.0a1 Reply-To: koobs@FreeBSD.org Subject: Re: Bringing back lang/python27 with few modules? Content-Language: en-US To: Maxim Sobolev Cc: portmgr@freebsd.org, python@freebsd.org, ports@freebsd.org References: From: Kubilay Kocak In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Hvj8v31zbz4twZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_FROM(0.00)[]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On 17/11/2021 6:58 pm, Maxim Sobolev wrote: > Hi, > > I am still a bit concerned with the total removal of python 2.7 year ago > and its support, I think this was a somewhat swift decision that may need > to be re-considered. I understand the urge for portmgr to move base over to > a supported version, but also that caused few important packages to be > dropped out of the FreeBSD without any fix in sight. I am specifically > talking about the PyPy package, which needs 2.7 to bootstrap itself even > when compiled as a "Python3" version. > > At the same time we still have a port of for example GCC 4.6, which is like > what, 15 years old? Also things in the tree like jython or micropython are > effectively python 2 implementations, so why are they allowed to be present > while not rock solid and field tried 2.7? In fact jython specifically > recommends using CPython2.7 to byte-compile some of the code that it cannot > chew by itself, so it's somewhat broken as well*. > > Is there any chance to bring CPython2.7 at the very least as a NO_PACKAGE > build tool that could be used for such cases now that we have moved most of > the supported packages to 3.x land? > > I had always considered FreeBSD to be about "tools not policy", but in this > particular case the policy seemingly took priority over tools and common > sense. > > Sorry if I am beating a dead horse here, just wanted to gauge the position > of the project before I go and open yet another bug report. > > Thanks! > > -Max Hey Max, We've had many user reports over the last year re the entire situation, including a number recently about pypy in particular. Feel free to reach out to python@ and we'll sort something out together. We're on IRC (#freebsd-python @ libera) or you can email me off list and we can work out a good place. > *) Like the following: > java.lang.RuntimeException: java.lang.RuntimeException: > Encountered too large method code in > /usr/ports/lang/pypy/work/pypy3.8-v7.3.7-src/rpython/rlib/unicodedata/unicodedb_6_0_0.py > > Please provide a CPython 2.7 bytecode file (.pyc) to proceed, e.g. run > python -m py_compile > /usr/ports/lang/pypy/work/pypy3.8-v7.3.7-src/rpython/rlib/unicodedata/unicodedb_6_0_0.py > and try again. > > Alternatively provide proper CPython 2.7 execute command via > cpython_cmd property, e.g. call > jython -J-Dcpython_cmd=python > or if running pip on Jython: > pip install --global-option="-J-Dcpython_cmd=python" > *** Error code 255 >