From patchwork Thu Jul 6 08:57:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 785067 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x3Bcq3jhSz9s7B for ; Thu, 6 Jul 2017 19:04:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.b="lTU3/YbE"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7C4D925AE2; Thu, 6 Jul 2017 09:04:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xr2wrnjiufRk; Thu, 6 Jul 2017 09:04:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 1AE9429074; Thu, 6 Jul 2017 09:04:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6790D1BFEC7 for ; Thu, 6 Jul 2017 09:04:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 631B3869C7 for ; Thu, 6 Jul 2017 09:04:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K2kHKwFktfqy for ; Thu, 6 Jul 2017 09:04:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9C074869C1 for ; Thu, 6 Jul 2017 09:04:00 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id x23so3499045wrb.0 for ; Thu, 06 Jul 2017 02:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=UeY5PU+PVSBLXVWpR6+Xz6BNzE1G7p+sMSEoaR7bahc=; b=lTU3/YbE8M3oH8Nl/1nEFx1VUE9WLfHcz01Pgx+Ag8d/609FldwV/eFPJG5fVhjdZE ulUIADCkJNqrZFuiHttVoV7chKL81lnKOMHAYSrTK/QTVZdH+9wc6uVDbgEnF4ArieiO P3DbVwq19EXQYOlVHeaLTB7erlWO7o3hwLPCJYJwZZhqHhrHZoM51GbiYlXcE0KxBDck AdU1vYNLCzIyKPZlzoaOu9X2fcWCdiIG0hUqtL4Q4WUVVVQWl+2P1EAcw6Tj3Va4pR/r 0Fwja+q/l1yXvl7DpHxAkDEg88wTYW2RkHNJ17TS1RQFFXdcHzLPA0CYWJrJJUruNSNF uhmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UeY5PU+PVSBLXVWpR6+Xz6BNzE1G7p+sMSEoaR7bahc=; b=NqANWFyW0Y9noBevHO/PqTjfulCrlxLLS0+n3fWC1VyOCiFT4sUEg3BrDRlJAOdQUy swnoBwLhkRw0U8RqFv10XksPfrFxxtGHJf+JHXG9qGNHYH8C9SMF2DBKZ2fICLzmC1eI /rUwU62NdCXfPrDztSLM8GnF6VfumIOsP4rjyUTPK8pVsmygLyLe+ZuzN2/0hMlcGKkn jRq0XOCbic46g42YAV5s/42fadb660eSADh+DzH0mxqkj0+2vDoivm2ECwRfUq22BvG3 CUISWFzbAXoHvUYKz1y8IDWkXshaOnZCFcCJ7FoJNxiPxSNttiwChf7xAnBYSJ3u6bOd Qrdw== X-Gm-Message-State: AKS2vOx7GUCeI9ctvUPSqmLlfS5r+vWZa1gCTSReir8RBRlqm78oaaif 2R1sfw1um6Vj10RM X-Received: by 10.80.183.232 with SMTP id i37mr24577056ede.50.1499331485538; Thu, 06 Jul 2017 01:58:05 -0700 (PDT) Received: from debian9.visionsystems.de (mail.visionsystems.de. [213.209.99.202]) by smtp.gmail.com with ESMTPSA id y53sm10510790edd.4.2017.07.06.01.58.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2017 01:58:04 -0700 (PDT) From: yegorslists@googlemail.com To: buildroot@buildroot.org Date: Thu, 6 Jul 2017 10:57:53 +0200 Message-Id: <20170706085753.14779-1-yegorslists@googlemail.com> X-Mailer: git-send-email 2.11.0 Subject: [Buildroot] [PATCH] python-jinja2: don't remove async files for Python 3 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Yegor Yefremov The needed functionality is already included into Python 3.6.x, so these files can be now compiled without errors. Signed-off-by: Yegor Yefremov --- package/python-jinja2/python-jinja2.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/python-jinja2/python-jinja2.mk b/package/python-jinja2/python-jinja2.mk index 34342ab704..c7dd4902b0 100644 --- a/package/python-jinja2/python-jinja2.mk +++ b/package/python-jinja2/python-jinja2.mk @@ -17,11 +17,13 @@ HOST_PYTHON_JINJA2_DEPENDENCIES = host-python-markupsafe # not available in Python 2 and some features available in Python 3.6. # So in both cases *.py compilation would produce compiler errors. # Hence remove both files after package extraction. +ifeq ($(BR2_PACKAGE_PYTHON),y) define PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT rm $(@D)/jinja2/asyncsupport.py $(@D)/jinja2/asyncfilters.py endef PYTHON_JINJA2_POST_EXTRACT_HOOKS = PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT +endif $(eval $(python-package)) $(eval $(host-python-package))