git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [Question] Moving from Python2 to Python3

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Mar 25, 2025, 21:31 UTC
Message-ID
<Z-MgpuxFQ3xEgvsU@tapette.crustytoothpaste.net>
In-Reply-To
<022b01db9d99$e68785c0$b3969140$@nexbridge.com>
On 2025-03-25 at 15:23:40, rsbecker@nexbridge.com wrote:
Show 8 quoted lines
> Hi Git Team,
> 
> I have Python2 and Python3 on my system. We are deprecating Python2 ASAP. Is
> there an easy way to force git
> to use Python3 only? Both are in /usr/bin. python has a symbolic link to
> python2 right now, but we are probably
> going to change that. I already have modified settings in config.mak.uname
> PYTHON_PATH = /usr/bin/python3.

I think only git-p4 uses Python in our codebase, so changing `PYTHON_PATH` should be sufficient to fix it. As far as I know, git-p4 currently supports both, so things should just work.

Of course, I might be mistaken, since I don't use git-p4.
-- 
brian m. carlson (they/them)
Toronto, Ontario, CA
Previous: rsbecker@nexbridge.comNext: Nikolay Shustov
Message 2 of 7 in “[Question] Moving from Python2 to Python3”
  1. rsbecker@nexbridge.comMar 25, 2025
  2. brian m. carlsonMar 25, 2025
  3. Nikolay ShustovMar 25, 2025
  4. Junio C HamanoMar 25, 2025
  5. Nikolay ShustovMar 25, 2025
  6. Todd ZullingerMar 26, 2025
  7. Nikolay ShustovMar 26, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.