From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95582 invoked by alias); 2 Jan 2019 04:29:01 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 95530 invoked by uid 89); 2 Jan 2019 04:29:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:cygwin, yaakov, Yaakov, fedora X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Jan 2019 04:28:58 +0000 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9F2F263144 for ; Wed, 2 Jan 2019 04:28:57 +0000 (UTC) Received: from ovpn-116-47.phx2.redhat.com (ovpn-116-47.phx2.redhat.com [10.3.116.47]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4057C19C65 for ; Wed, 2 Jan 2019 04:28:57 +0000 (UTC) Message-ID: <4d8e0dc0a11f2ba11a946df51f8edeb53f94ad07.camel@cygwin.com> Subject: Re: python compilation issue on pylint From: Yaakov Selkowitz To: "cygwin@cygwin.com" Date: Wed, 02 Jan 2019 04:29:00 -0000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-01/txt/msg00004.txt.bz2 On Thu, 2018-12-20 at 06:19 +0100, Marco Atzeri wrote: > I am trying to build a recent pylint with the attached cygport > but the following error is puzzling me > > /usr/lib/python3.6/assert_on_tuple.py:11: SyntaxWarning: assertion is > always true, perhaps remove parentheses? > *** Error compiling > '/cygdrive/d/cyg_pub/devel/python-module/python3-pylint-2.2.2-1.x86_64/inst/usr/lib/python3.6/site-packages/pylint/test/functional/anomalous_unicode_escape_py2.py'... > File "/usr/lib/python3.6/anomalous_unicode_escape_py2.py", line 17 > RAW_UNICODE = ur"\u0062\n" > ^ > SyntaxError: invalid syntax This appears to be a(n old?) Py2-specific test, which won't byte- compile with Py3 because of the language changes in between. However, as this is simply a testcase, it doesn't really have to be installed at all. FWIW, Fedora just removes the tests entirely, and I would recommend the same. Presuming you are using python3-wheel (since pylint 2.x does not support Py2), try the following: src_install() { cd ${B} python3_wheel_install find ${D}${PYTHON3_SITELIB}/pylint/test/ -delete } -- Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple