mirror of
https://github.com/containers/podman.git
synced 2025-06-27 21:50:18 +08:00
Merge pull request #818 from wking/python-2-clean
Makefile: Call contrib/python's clean regardless of HAS_PYTHON3
This commit is contained in:
7
Makefile
7
Makefile
@ -24,7 +24,6 @@ ifneq (,$(findstring varlink,$(BUILDTAGS)))
|
|||||||
PODMAN_VARLINK_DEPENDENCIES = cmd/podman/varlink/iopodman.go
|
PODMAN_VARLINK_DEPENDENCIES = cmd/podman/varlink/iopodman.go
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PYTHON ?= /usr/bin/python3
|
|
||||||
HAS_PYTHON3 := $(shell command -v python3 2>/dev/null)
|
HAS_PYTHON3 := $(shell command -v python3 2>/dev/null)
|
||||||
|
|
||||||
BASHINSTALLDIR=${PREFIX}/share/bash-completion/completions
|
BASHINSTALLDIR=${PREFIX}/share/bash-completion/completions
|
||||||
@ -138,12 +137,10 @@ clean:
|
|||||||
libpod/container_easyjson.go \
|
libpod/container_easyjson.go \
|
||||||
libpod/pod_easyjson.go \
|
libpod/pod_easyjson.go \
|
||||||
$(MANPAGES) ||:
|
$(MANPAGES) ||:
|
||||||
ifdef HAS_PYTHON3
|
|
||||||
$(MAKE) -C contrib/python/podman clean
|
|
||||||
$(MAKE) -C contrib/python/pypodman clean
|
|
||||||
endif
|
|
||||||
find . -name \*~ -delete
|
find . -name \*~ -delete
|
||||||
find . -name \#\* -delete
|
find . -name \#\* -delete
|
||||||
|
$(MAKE) -C contrib/python/podman clean
|
||||||
|
$(MAKE) -C contrib/python/pypodman clean
|
||||||
|
|
||||||
libpodimage:
|
libpodimage:
|
||||||
docker build -t ${LIBPOD_IMAGE} .
|
docker build -t ${LIBPOD_IMAGE} .
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
PYTHON ?= /usr/bin/python3
|
PYTHON ?= $(shell command -v python3 2>/dev/null || command -v python)
|
||||||
DESTDIR ?= /
|
DESTDIR ?= /
|
||||||
PODMAN_VERSION ?= '0.0.4'
|
PODMAN_VERSION ?= '0.0.4'
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ uninstall:
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
$(PYTHON) setup.py clean --all
|
|
||||||
rm -rf podman.egg-info dist
|
rm -rf podman.egg-info dist
|
||||||
find . -depth -name __pycache__ -exec rm -rf {} \;
|
find . -depth -name __pycache__ -exec rm -rf {} \;
|
||||||
find . -depth -name \*.pyc -exec rm -f {} \;
|
find . -depth -name \*.pyc -exec rm -f {} \;
|
||||||
|
$(PYTHON) ./setup.py clean --all
|
||||||
|
2
contrib/python/podman/setup.py
Normal file → Executable file
2
contrib/python/podman/setup.py
Normal file → Executable file
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
PYTHON ?= /usr/bin/python3
|
PYTHON ?= $(shell command -v python3 2>/dev/null || command -v python)
|
||||||
DESTDIR := /
|
DESTDIR := /
|
||||||
PODMAN_VERSION ?= '0.0.4'
|
PODMAN_VERSION ?= '0.0.4'
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ clobber: uninstall clean
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
$(PYTHON) setup.py clean --all
|
|
||||||
rm -rf pypodman.egg-info dist
|
rm -rf pypodman.egg-info dist
|
||||||
find . -depth -name __pycache__ -exec rm -rf {} \;
|
find . -depth -name __pycache__ -exec rm -rf {} \;
|
||||||
find . -depth -name \*.pyc -exec rm -f {} \;
|
find . -depth -name \*.pyc -exec rm -f {} \;
|
||||||
|
$(PYTHON) ./setup.py clean --all
|
||||||
|
2
contrib/python/pypodman/setup.py
Normal file → Executable file
2
contrib/python/pypodman/setup.py
Normal file → Executable file
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
Reference in New Issue
Block a user