提交 002790f1 编写于 作者: C Cleber Rosa

Makefile: cleanup Python compiled files properly

One of the clean steps executed prior to the deletion of the 'pyc' files
calls `$(PYTHON) setup.py develop --uninstall --user`, which ends up
loading modules and creating some of those again. Let's change the order
so that the Python compiled files are really gone after a `make clean`.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 d67975b1
......@@ -104,7 +104,6 @@ clean:
$(PYTHON) setup.py clean
$(MAKE) -f $(CURDIR)/debian/rules clean || true
rm -rf build/ MANIFEST BUILD BUILDROOT SPECS RPMS SRPMS SOURCES
find . -name '*.pyc' -delete
rm -f man/avocado.1
rm -f man/avocado-rest-client.1
rm -rf docs/build
......@@ -115,6 +114,7 @@ clean:
$(PYTHON) setup.py develop --uninstall --user
rm -rf /var/tmp/avocado*
rm -rf /tmp/avocado*
find . -name '*.pyc' -delete
requirements:
- if $$(python -V 2>&1 | grep 2.6 -q); then grep -v '^#' requirements-python26.txt | xargs -n 1 pip install --upgrade; fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册