提交 35f2ec8a 编写于 作者: C Cleber Rosa

Makefile: create distribution rules for wheel packages

Python wheel packages are really convenient.  Let's create and
distrubute them in addition to the source packages.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 60be0d3c
......@@ -71,7 +71,19 @@ source-pypi: clean
fi;\
done
pypi: source-pypi develop
wheel: clean
if test ! -d PYPI_UPLOAD; then mkdir PYPI_UPLOAD; fi
$(PYTHON) setup.py bdist_wheel -d PYPI_UPLOAD
for PLUGIN in $(AVOCADO_OPTIONAL_PLUGINS); do\
if test -f $$PLUGIN/setup.py; then\
echo ">> Creating wheel distribution for $$PLUGIN";\
cd $$PLUGIN;\
$(PYTHON) setup.py bdist_wheel -d ../../PYPI_UPLOAD;\
cd -;\
fi;\
done
pypi: wheel source-pypi develop
mkdir PYPI_UPLOAD/avocado-framework
cp avocado_framework.egg-info/PKG-INFO PYPI_UPLOAD/avocado-framework
tar rf "PYPI_UPLOAD/avocado-framework-$(VERSION).tar" -C PYPI_UPLOAD avocado-framework/PKG-INFO
......@@ -84,7 +96,7 @@ pypi: source-pypi develop
@echo " https://pypi.python.org/pypi?%3Aaction=submit_form"
@echo
@echo "Alternatively, you can also run a command like: "
@echo " twine upload -u <PYPI_USERNAME> PYPI_UPLOAD/avocado-framework-$(VERSION).tar.gz"
@echo " twine upload -u <PYPI_USERNAME> PYPI_UPLOAD/*.{tar.gz,whl}"
@echo
install:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册