Commit e127233b authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

python/Makefile: Use python3 while fetching purelib



Some environments (e.g. container images) don't provide either the
"python" binary or "python" symlink - it's more common to always see
a specific version being available in the path, e.g. python3.

Use that to avoid spam like:
  # make clean -j
  /bin/sh: line 1: python: command not found

This also aligns it with other parts of the Makefile (i.e. setup_cmd).

Change-Id: I460c36d8b41bfb13c004ddf4e6b5a1f89b6abfbe
Signed-off-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20031


Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKarol Latecki <karol.latecki@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Reviewed-by: default avatarPawel Piatek <pawelx.piatek@intel.com>
parent c15b0d68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ ifneq ($(CONFIG_PYDIR),)
setup_cmd += --install-purelib $(CONFIG_PYDIR)
purelibdir := $(CONFIG_PYDIR)
else
purelibdir := $(shell python -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")
purelibdir := $(shell python3 -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")
endif

all: