From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: master 7f0a252f216 1/2: Prefer python3 for python-interpreter Date: Sun, 29 Sep 2024 09:05:29 -0700 Message-ID: References: <86r0958t97.fsf@gnu.org> <86bk064gu8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21369"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 29 18:06:25 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1suwRE-0005O9-3q for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Sep 2024 18:06:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suwQR-0006Gm-RA; Sun, 29 Sep 2024 12:05:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1suwQP-00069l-W0 for emacs-devel@gnu.org; Sun, 29 Sep 2024 12:05:34 -0400 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1suwQO-0005N3-FX; Sun, 29 Sep 2024 12:05:33 -0400 Original-Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5c46c2bf490so2002271a12.3; Sun, 29 Sep 2024 09:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727625930; x=1728230730; darn=gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=/A+DOapBK3bR09o+HNFCHUlAiMDKjvvCFtpe5h2zctM=; b=Eey6NoY/X3NrGhgM05E6h2XIma7t3nu5OeM+JVMM0l8/1h5zfNxL6VLpbXn16USsSg deHsS/vF3LbVaVLFaElWYcf+tWzF1BHJAme0dlV6DJC+mHe+ESdTo88jriqMleqChmla kZksys3eDgA0yqygTt+HN25MTH+xk0dxvzFoYiYorC5fuKKP4fL0SHZvkKEM2OB+uCkn KErw72n6n1B6tFJJh5Bt1ZHrbGNvZ9d1DVx58Q04XNCUvRgRTWSOqyCfwTe1giJZNM7u efCRhl0+/9l+z3i9g8zbCcaPb0US1zwWeohoXyrD2aIsFTprt0d/s4CFbRuffovbyrrs ar7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727625930; x=1728230730; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/A+DOapBK3bR09o+HNFCHUlAiMDKjvvCFtpe5h2zctM=; b=fUym9Uz4AxL4nq9aw8ueUxmMFRL0z7sImjPGyBXGvyT6SoansrMf9g3PCkSXdqWjaz N38VzWBQZBOHXyt5kZqWiFmMsLJGCL7FmsvA5AowTtPjzt1Ho83DqMVwgdco8v+yIbd2 9I/WQEpQLWQ4icaxtqDo+Rzhm58VXzsXh2CTvK9AaoWpB429jmlJIJSZ0ErsVyUUvBKG QKqD3DxVOgGQmehoa1HoBpB0R9XHVy91ZekDKFFp2LgEbEVVLFMwi4LcydqUAL5abKtP 4Ol4oUsdwZ852ctAE3HWnalwS4T3FCfTl9rtbRwNgBPJycGNOkX7nr5R7htOqgoUEhC1 E8bQ== X-Gm-Message-State: AOJu0YxrKBi1r2tin0BjOMaLoCKytSABDMHh9jQ/t5x2koQ9zxZcdzzc 7zhd8xSjcuVdUxizhODerfIunn44iAwoQYzoKZcZOGjCoGaZbXchk7n3g1Xl4FjF1kAfOjEY30e GuvEkA3w8CGPjVBsPfdXgwiNjvftTwQ== X-Google-Smtp-Source: AGHT+IE5608QltsXr3+gPdymjwjHzh3ysRw9C8qcIaej2RdiCgZiUDDgICAtg3nxS7VmhpgmCUmTp1vCvq4M595vZQY= X-Received: by 2002:a05:6402:43cb:b0:5c8:8290:47bf with SMTP id 4fb4d7f45d1cf-5c882904925mr13994277a12.21.1727625930040; Sun, 29 Sep 2024 09:05:30 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 29 Sep 2024 09:05:29 -0700 In-Reply-To: <86bk064gu8.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324199 Archived-At: Eli Zaretskii writes: >> There is no "python" binary or symlink by default on Debian, Ubuntu, >> Fedora, etc. > > There is a "python" (a symlink) on Trisquel, and I think someone else > said here the same about another variety (Arch?). > And I see at least one Fedora system, where "python" _is_ available > (and is a symlink). Maybe I confused Fedora with CentOS. In any case, systems where "python" is a symlink should have no problem with this change. (Arch removed Python 2 from their archive in 2022, FWIW. It's possible that they symlink "python" to "python3"; I don't know.) >> the commands `python-sort-imports', `python-add-import', >> `python-remove-import', and `python-fix-imports' have been broken by >> default. That is now fixed. > > We had the previous value for a long time, and I don't recollect any > complaints. So calling this "broken" is too far-reaching. Well, I'm telling you that it doesn't work. For example, `M-x python-sort-imports' on Ubuntu 22 gives: Debugger entered--Lisp error: (file-missing "Searching for program" "No such file or directory" "python") BTW, the fact that the previous default has been there for a long time is not surprising. Most distributions migrated to Python 3 by default only in recent years (starting in earnest around 2018-2019). >> Note that this is the same value as for `python-shell-interpreter', and >> that we have had no issues with. > > Not everyone invokes the interpreter. Not everyone invokes `M-x python-sort-imports' either, so I don't think I see your point. >> If there is no "python3", it will fall back to "python". If that >> happens to be Python 2 on your machine, that is what will be used. > > Can we be a bit more friendly to systems where the previous default > was better? Which systems are those, and what is the problem?