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


changing in
  RAW_UNICODE = ur'\u0062\n'
or
  RAW_UNICODE = ur"\u0062"

make no difference.

Any clue what can cause it ?
For what I see the code was always there
https://github.com/PyCQA/pylint/commits/master/pylint/test/functional/anomalous_unicode_escape_py2.py

so it seems a cygwin build issue only.

Regards
Marco


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
inherit python3-wheel

NAME="python3-pylint"
VERSION=2.2.2
RELEASE=1
CATEGORY="Python"
SUMMARY="Python static code checker"
DESCRIPTION="Analyzes source code for programming errors, helps enforcing a 
coding
standard and sniffs for some code smells (as defined in Martin
Fowler's Refactoring book). Pylint can be seen as another PyChecker
since nearly all tests you can do with PyChecker can also be done with
Pylint. However, Pylint offers some more features, like checking
length of lines of code, checking if variable names are well-formed
according to your coding standard, or checking if declared interfaces
are truly implemented, and much more."

HOMEPAGE="https://github.com/PyCQA/pylint";
SRC_URI="https://github.com/PyCQA/pylint/archive/pylint-${VERSION}.tar.gz";
SRC_DIR="pylint-pylint-${VERSION}"

# interferes with get_flags_linker_so in numpy.distutils.fcompiler
unset LDFLAGS

python3_pylint_CONTENTS="usr/bin/*3 ${python3_pylint_CONTENTS}"
--
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

Reply via email to