mirror of
https://github.com/containers/podman.git
synced 2026-03-19 15:18:44 -04:00
In order to get a cleaner build out of the rpms we should pass down the DESTDIR to the python Makefiles. Then we can use them instead of hard coding other inteligence into the spec files. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1214 Approved by: baude
32 lines
567 B
Makefile
32 lines
567 B
Makefile
PYTHON ?= /usr/bin/python3
|
|
DESTDIR := /
|
|
|
|
.PHONY: python-pypodman
|
|
python-pypodman:
|
|
$(PYTHON) setup.py sdist bdist
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
$(PYTHON) -m pylint pypodman
|
|
|
|
.PHONY: integration
|
|
integration:
|
|
true
|
|
|
|
.PHONY: install
|
|
install:
|
|
$(PYTHON) setup.py install --root ${DESTDIR}
|
|
|
|
.PHONY: clobber
|
|
clobber: uninstall clean
|
|
|
|
.PHONY: uninstall
|
|
$(PYTHON) -m pip uninstall --yes pypodman ||:
|
|
|
|
.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 {} \;
|