board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / python-gunicorn / python-gunicorn.mk
blobcfb7da110cab2cd9ce9eb1a5587d09ef1b85e880
1 ################################################################################
3 # python-gunicorn
5 ################################################################################
7 PYTHON_GUNICORN_VERSION = 19.6.0
8 PYTHON_GUNICORN_SOURCE = gunicorn-$(PYTHON_GUNICORN_VERSION).tar.gz
9 PYTHON_GUNICORN_SITE = https://pypi.python.org/packages/84/ce/7ea5396efad1cef682bbc4068e72a0276341d9d9d0f501da609fab9fcb80
10 PYTHON_GUNICORN_SETUP_TYPE = setuptools
11 PYTHON_GUNICORN_LICENSE = MIT
12 PYTHON_GUNICORN_LICENSE_FILES = LICENSE
14 # At the end of the build, we try to compile all py files using the host python
15 # that has been built.
16 # The GAIO HTTP Worker is only compatible with Python3.4.2 and up. So don't try
17 # to compile it with python 2.x
18 ifeq ($(BR2_PACKAGE_PYTHON),y)
19 define PYTHON_GUNICORN_REMOVE_GAIO_WORKER
20 find $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/ \
21 -name "_gaiohttp.py" -exec rm -f {} \;
22 endef
23 PYTHON_GUNICORN_POST_INSTALL_TARGET_HOOKS += PYTHON_GUNICORN_REMOVE_GAIO_WORKER
24 endif
26 $(eval $(python-package))