mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

The pylint script mismatches from source in the target, producing runtime errors, such as: "pkg_resources.DistributionNotFound: The 'configparser' was not found and is required by pylint" This exception is raised mainly because pkg_resources, which is used by pylint, looks for modules named as in Py3, but the target has only Py2. For instance, 'ConfigParser' (already installed), has been renamed to 'configparser' in Py3, and thus not found by pkg_resources. To ensure none of these compatibility issues happen, the pylint script handles all the imports. Thus, /usr/bin/pylint has to be installed in the same fashion as in source, and the recipe in this patch states the content of such script and deletes the previous one. Also, a set of runtime dependencies is added to the recipe. Signed-off-by: Daniela Plascencia <daniela.plascencia@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
45 lines
1.4 KiB
BlitzBasic
45 lines
1.4 KiB
BlitzBasic
SUMMARY="Pylint is a Python source code analyzer"
|
|
HOMEPAGE= "http://www.pylint.org/"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
|
|
|
|
SRC_URI[md5sum] = "66ba9c27e067568bdabcdd7c21303903"
|
|
SRC_URI[sha256sum] = "ef901a34b62ed7a734370ba5b162d890231ba8822abe88c6dda1268e2575f5f1"
|
|
|
|
RDEPENDS_${PN} += "python-codecs \
|
|
python-contextlib \
|
|
python-core \
|
|
python-distutils \
|
|
python-io \
|
|
python-lang \
|
|
python-multiprocessing \
|
|
python-netserver \
|
|
python-numbers \
|
|
python-pickle \
|
|
python-re \
|
|
python-shell \
|
|
python-six \
|
|
python-stringold \
|
|
python-subprocess \
|
|
python-textutils \
|
|
python-unittest \
|
|
python-backports-functools-lru-cache \
|
|
python-setuptools \
|
|
python-astroid \
|
|
python-wrapt \
|
|
python-isort \
|
|
python-lazy-object-proxy \
|
|
"
|
|
|
|
inherit pypi setuptools
|
|
|
|
do_install_append(){
|
|
rm ${D}${bindir}/pylint
|
|
cat >> ${D}${bindir}/pylint <<EOF
|
|
#!/usr/bin/env python
|
|
from pylint import run_pylint
|
|
run_pylint()
|
|
EOF
|
|
chmod 755 ${D}${bindir}/pylint
|
|
}
|