summaryrefslogtreecommitdiff
path: root/contrib/python/pypodman/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/pypodman/Makefile')
-rw-r--r--contrib/python/pypodman/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/pypodman/Makefile b/contrib/python/pypodman/Makefile
index 8c9691996..cd0fcf1de 100644
--- a/contrib/python/pypodman/Makefile
+++ b/contrib/python/pypodman/Makefile
@@ -1,4 +1,4 @@
-PYTHON ?= /usr/bin/python3
+PYTHON ?= $(shell command -v python3 2>/dev/null || command -v python)
DESTDIR := /
PODMAN_VERSION ?= '0.0.4'
@@ -31,7 +31,7 @@ clobber: uninstall clean
.PHONY: clean
clean:
- $(PYTHON) setup.py clean --all
rm -rf pypodman.egg-info dist
find . -depth -name __pycache__ -exec rm -rf {} \;
find . -depth -name \*.pyc -exec rm -f {} \;
+ $(PYTHON) ./setup.py clean --all