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