[WIP] Refactor and simplify python builds

* pypodman namespaced in site-packages
* version numbers pulled from requirements.txt
* add python-podman spec file to install eggs

Signed-off-by: Jhon Honce <jhonce@redhat.com>

Closes: #1106
Approved by: rhatdan
This commit is contained in:
Jhon Honce
2018-07-16 17:29:50 -07:00
committed by Atomic Bot
parent 8569ed0305
commit 9a18681ba6
29 changed files with 277 additions and 173 deletions

View File

@ -2,7 +2,11 @@ PYTHON ?= /usr/bin/python3
.PHONY: python-pypodman
python-pypodman:
$(PYTHON) setup.py bdist
$(PYTHON) setup.py sdist bdist
.PHONY: lint
lint:
$(PYTHON) -m pylint pypodman
.PHONY: integration
integration:
@ -10,12 +14,17 @@ integration:
.PHONY: install
install:
$(PYTHON) setup.py install --user
$(PYTHON) setup.py install
.PHONY: clobber
clobber: uninstall clean
.PHONY: uninstall
$(PYTHON) -m pip uninstall --yes pypodman ||:
.PHONY: clean
clean:
$(PYTHON) setup.py clean --all
pip3 uninstall pypodman ||:
rm -rf pypodman.egg-info dist
find . -depth -name __pycache__ -exec rm -rf {} \;
find . -depth -name \*.pyc -exec rm -f {} \;