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