From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f171.google.com (mail-qt0-f171.google.com [209.85.216.171]) by mail.openembedded.org (Postfix) with ESMTP id 7768371AD4 for ; Tue, 18 Apr 2017 09:33:36 +0000 (UTC) Received: by mail-qt0-f171.google.com with SMTP id m36so120219846qtb.0 for ; Tue, 18 Apr 2017 02:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8fWKCScu50PB7qTK9427A7VKQxlMzsgzGUfsnRMRiGM=; b=iQ5LeiJiMnk1nTBda2eP1ZFTwfT3kUsHNTXHVXCro1dlnTYgFTudbgCZqRtOamDX68 Bou+LPKoB1Mndqh/+mCheI+H2jlrvYlg4Yjyb0yMpncDrjomIEGmnMBy4a1uC47EG9qf yHbUnLCeD6tEQYYaTnt0XXsbm+XJlgzmkXeJUiLR9SU7GbZ/e9y3p0sYNimX3R+mTCt3 rRnvVKUj7I5qprRFSD8QPq7yNG1rBXT4FxDqlA603E8LCVksmBCBIH78HeX6YuhHwkvv 8R6OOsapQi7rqIcf+PLT8q69WIl0+5E7I691K2I7KzyBmoa7XB0fA2zJSkG2LZZ12Kr5 b6jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8fWKCScu50PB7qTK9427A7VKQxlMzsgzGUfsnRMRiGM=; b=fSZv9j6lh+ejjp3Z18VPQgtrnz7U82W0l2jc5V5cXZXDeNFSTO3fV6tjaVUxXdJ6Bp WElHUf6EJAC1mzRs126TTc0ZQtRgwW21ZSP72lSfOvVP2pv9IOgofk6UwLX2j2SnLmox ybG5XJ+bFSWRZd3+8NtHeTAdnyQ26W3JEB44/2Bb8gkA255R8ee7cqh+qrjXhAwhjlWK 5UaK7KxLuW8///vM3B7c+5QlyoDbuzMjVps2SQ1oqB3i/reTfxMdv7JJBZxhVl7XFv1e W3mQqFfHb0LC3BMQyVM6SP78mmrBFxTcbmaPdbJo3ugWgA6rwj2vVAFMni4WLerrhNHA u0JA== X-Gm-Message-State: AN3rC/5vkuBPZf/wKv+FVhwPC+NaANdg5dBDRll0ApbcFan3dBoFCSEi DA2T415Phl0gg/Su2OiI4znT1227a2Mv8sU= X-Received: by 10.200.34.162 with SMTP id f31mr13719712qta.65.1492508017391; Tue, 18 Apr 2017 02:33:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.22.166 with HTTP; Tue, 18 Apr 2017 02:33:16 -0700 (PDT) In-Reply-To: <1492505071.7102.5.camel@linux.intel.com> References: <20170413083344.22737-1-dmitry.rozhkov@linux.intel.com> <85c346c4-f6d6-c853-bfc5-0daa64ea2db8@linux.intel.com> <1492505071.7102.5.camel@linux.intel.com> From: "Burton, Ross" Date: Tue, 18 Apr 2017 10:33:16 +0100 Message-ID: To: Dmitry Rozhkov Cc: OE-core Subject: Re: [PATCH] python: make python2 and python3 alternatives to python X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2017 09:33:37 -0000 Content-Type: multipart/alternative; boundary=001a114027ec3390a4054d6d9a84 --001a114027ec3390a4054d6d9a84 Content-Type: text/plain; charset=UTF-8 On 18 April 2017 at 09:44, Dmitry Rozhkov wrote: > I've just checked PEP-349. It recommends that > > "- The more general python command should be installed whenever any > version of Python 2 is installed and should invoke the same version of > Python as the python2 command (however, note that some distributions > have already chosen to have python implement the python3 command; see > the Rationale and Migration Notes below)." > > The proposed patch doesn't violate this recommendation, because > "whenever" Python 2 is installed the python command still invokes > python2. > Only out of the box: you can install py2 and py3 and set the alternatives so that python is python3. If I understood correctly OE-core is not a distribution, but a tool to > create "a custom one". I would rather allow people to create > distributions where python3 is the default like in Arch Linux. Personally I feel the PEP is an attempt to limit the damage caused by Arch ignoring the Python maintainers, and I'd prefer not to spread the impression that 'python' could be Python 3. Unless you code incredibly carefully it's not simple to have a script that doesn't care if it runs under Py2 or Py3. Ross --001a114027ec3390a4054d6d9a84 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On 18 April 2017 at 09:44, Dmitry Rozhkov <dmitry.rozhkov@lin= ux.intel.com> wrote:
I've just che= cked PEP-349. It recommends that

"- The more general python command should be installed whenever any version of Python 2 is installed and should invoke the same version of
Python as the python2 command (however, note that some distributions
have already chosen to have python implement the python3 command; see
the Rationale and Migration Notes below)."

The proposed patch doesn't violate this recommendation, because
"whenever" Python 2 is installed the python command still invokes=
python2.

Only out of the box: you can insta= ll py2 and py3 and set the alternatives so that python is python3.

If I understood correctly OE-core is not a distrib= ution, but a tool to
create "a custom one". I would rather allow people to createdistributions where= python3 is the default like in Arch Linux.

Personally I feel the= PEP is an attempt to limit the damage caused by Arch ignoring the Python m= aintainers, and I'd prefer not to spread the impression that 'pytho= n' could be Python 3.=C2=A0 Unless you code incredibly carefully it'= ;s not simple to have a script that doesn't care if it runs under Py2 o= r Py3.

Ross
--001a114027ec3390a4054d6d9a84--