From b7f18cc398d23cbc9e32a2cc7756d3586413c29a Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Mon, 12 Apr 2021 13:22:27 +0200 Subject: [PATCH] Makefile: Allow one to specify python version Change: - Allow overriding python version as env var for Makefile - Including hacking directory in git export, for docs build Test Plan: - Tested as part of recent downstream work --- .gitattributes | 1 - Makefile | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 7d5be40ba54405..b87b24305e6748 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1 @@ .github/ export-ignore -hacking/ export-ignore diff --git a/Makefile b/Makefile index aff3d894239d18..7fb44ba1e6cfbd 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ else ASCII2MAN = @echo "ERROR: rst2man from docutils command is not installed but is required to build $(MANPAGES)" && exit 1 endif -PYTHON=python +PYTHON ?= python GENERATE_CLI = hacking/build-ansible.py generate-man # fetch version from project release.py as single source-of-truth