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

Re: [PATCH v2] git-instaweb: Add Python builtin http.server support

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jan 28, 2019, 16:52 UTC
Message-ID
<20190128165236.GC423984@genre.crustytoothpaste.net>
In-Reply-To
<20190128132458.31401-1-arti.zirk@gmail.com>
On Mon, Jan 28, 2019 at 03:24:59PM +0200, Arti Zirk wrote:
Show 5 quoted lines
> +	# generate a standalone 'python http.server' script in $fqgitdir/gitweb
> +	# This asumes that python is in user's $PATH
> +	# This script is Python 2 and 3 compatible
> +	cat > "$fqgitdir/gitweb/gitweb.py" <<EOF
> +#!/usr/bin/env python

I will point out, that despite what the PEPs say, on Debian and derivatives, "python" will always invoke Python 2, and never Python 3.

This is probably fine for now, but we'll need to reconsider it before 2020.

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Arti ZirkNext: Arti Zirk
Message 9 of 11 in “git-instaweb: Add Python builtin http.server support”
  1. git-instaweb: Add Python builtin http.server supportArti Zirk, Jan 24, 2019
  2. Junio C HamanoJan 24, 2019
  3. brian m. carlsonJan 25, 2019
  4. Junio C HamanoJan 25, 2019
  5. Arti ZirkJan 25, 2019
  6. brian m. carlsonJan 25, 2019
  7. Junio C HamanoJan 28, 2019
  8. git-instaweb: Add Python builtin http.server supportArti Zirk, Jan 28, 2019
  9. brian m. carlsonJan 28, 2019
  10. Arti ZirkJan 28, 2019
  11. Junio C HamanoJan 28, 2019

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.