Disable wrappers as Python version is controlled by FLAVORS --- README.md.orig 2020-11-12 02:19:34 UTC +++ README.md @@ -53,21 +53,6 @@ Setup: If you want to build git along the helper, you can run `make git`. -Experimental support for python 3.x: ------------------------------------- - -Experimental support for python 3.5 or more can be enabled by one of the -following: - -- set the `GIT_CINNABAR_EXPERIMENTS` environment variable to `python3`. -- `git config cinnabar.experiments python3`. - -It has been tested mainly with python 3.5 and 3.7. Corner cases may not work -properly. - -It is also possible to replace `python3` in either `GIT_CINNABAR_EXPERIMENTS` -or `cinnabar.experiments` with `python=/path/to/python`. - Usage: ------ --- git-cinnabar.orig 2020-11-12 02:19:34 UTC +++ git-cinnabar @@ -1,25 +1,4 @@ -#!/bin/sh -''':' -experiments=",${GIT_CINNABAR_EXPERIMENTS-$(git config cinnabar.experiments)}," -case "$experiments" in -*,python3,*) - PYTHON=python3 - ;; -*,python=*,*) - PYTHON=${experiments#*,python=} - PYTHON=${PYTHON%%,*} - ;; -*) - if command -v python2.7 > /dev/null; then - PYTHON=python2.7 - else - PYTHON=python2 - fi - ;; -esac -exec $PYTHON $0 "$@" -exit 1 -''' +#!/usr/bin/env python import os import sys --- git-remote-hg.orig 2020-11-12 02:19:34 UTC +++ git-remote-hg @@ -1,25 +1,4 @@ -#!/bin/sh -''':' -experiments=",${GIT_CINNABAR_EXPERIMENTS-$(git config cinnabar.experiments)}," -case "$experiments" in -*,python3,*) - PYTHON=python3 - ;; -*,python=*,*) - PYTHON=${experiments#*,python=} - PYTHON=${PYTHON%%,*} - ;; -*) - if command -v python2.7 > /dev/null; then - PYTHON=python2.7 - else - PYTHON=python2 - fi - ;; -esac -exec $PYTHON $0 "$@" -exit 1 -''' +#!/usr/bin/env python from __future__ import division import os