delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/01/01/23:29:12

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
q=dns; s=default; b=I1q+zRhxhkM53C9NaI9BZQMkkZpXOiyuBjcOY4l88Ev
0sK79jb8QpyrwNBsvMpnyDPbJOWiVCOCD/rSX9BfQW8QeMmVmHaAL1E9CPyTaGZJ
hHKuDd1nsxdq3/KhTOu+kz193O8wF/dK3Yupf5ZXkpPcY6kQj7zf1i9V86uDKH0Y
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
s=default; bh=E30l9yJCGHHweUwXTEAWk1JQuXc=; b=JRaudqmGkovySdVnA
HDfHbQKbcJhW0SDO2PX9ovGYGYBkXgdj2QO25aTo2Tx6+J7ENZMIKJUAJYtkuBYy
mKy3n0AbgI4Aket0PHUF2k0zeDKaYAYY4a0ryyjupOAFml3Ut1CTn1b2QRk8vc69
efENc+id8kSaDOvUPZCRtERJr4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Message-ID: <4d8e0dc0a11f2ba11a946df51f8edeb53f94ad07.camel@cygwin.com>
Subject: Re: python compilation issue on pylint
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Tue, 01 Jan 2019 22:28:55 -0600
In-Reply-To: <ecc0222e-ca02-4580-69af-da32eeb6b85a@gmail.com>
References: <ecc0222e-ca02-4580-69af-da32eeb6b85a AT gmail DOT com>
Mime-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019