Merge pull request #818 from wking/python-2-clean

Makefile: Call contrib/python's clean regardless of HAS_PYTHON3
This commit is contained in:
Matthew Heon
2018-09-27 09:42:43 -04:00
committed by GitHub
5 changed files with 10 additions and 9 deletions

View File

@ -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

2
contrib/python/pypodman/setup.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import os
from setuptools import find_packages, setup