Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mail.openembedded.org (Postfix) with ESMTP id 3EB3E71A22 for ; Thu, 1 Dec 2016 21:19:31 +0000 (UTC) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP; 01 Dec 2016 13:19:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,726,1477983600"; d="scan'208";a="36305726" Received: from yctb04.ostc.intel.com ([10.54.69.58]) by orsmga004.jf.intel.com with ESMTP; 01 Dec 2016 13:19:31 -0800 From: daniela.plascencia@linux.intel.com To: openembedded-devel@lists.openembedded.org Date: Thu, 1 Dec 2016 13:24:52 +0000 Message-Id: <1480598692-5350-8-git-send-email-daniela.plascencia@linux.intel.com> X-Mailer: git-send-email 2.6.6 In-Reply-To: <1480598692-5350-1-git-send-email-daniela.plascencia@linux.intel.com> References: <1480598692-5350-1-git-send-email-daniela.plascencia@linux.intel.com> Cc: Daniela Plascencia , leonardo.sandoval.gonzalez@linux.intel.com Subject: [meta-python][PATCH V3 7/7] python-pylint: modifies package bin to match source and adds dependencies X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2016 21:19:31 -0000 From: Daniela Plascencia 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 --- .../recipes-devtools/python/python-pylint_1.6.4.bb | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/meta-python/recipes-devtools/python/python-pylint_1.6.4.bb b/meta-python/recipes-devtools/python/python-pylint_1.6.4.bb index b9219dd..2e34451 100644 --- a/meta-python/recipes-devtools/python/python-pylint_1.6.4.bb +++ b/meta-python/recipes-devtools/python/python-pylint_1.6.4.bb @@ -22,6 +22,23 @@ RDEPENDS_${PN} += "python-codecs \ python-stringold \ python-subprocess \ python-textutils \ - python-unittest" + 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 <