From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 291D2138239 for ; Sun, 17 Nov 2019 22:59:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34DA6E0918; Sun, 17 Nov 2019 22:59:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1772FE0919 for ; Sun, 17 Nov 2019 22:59:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A584434CF0F for ; Sun, 17 Nov 2019 22:59:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3C757888 for ; Sun, 17 Nov 2019 22:59:01 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1574031539.534369f45a07089970f310a90978057da74504eb.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycparser/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pycparser/pycparser-2.19-r1.ebuild dev-python/pycparser/pycparser-2.19.ebuild X-VCS-Directories: dev-python/pycparser/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 534369f45a07089970f310a90978057da74504eb X-VCS-Branch: master Date: Sun, 17 Nov 2019 22:59:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 06a17741-8c84-43b8-b0aa-1fe36aa03bba X-Archives-Hash: 91f3149d36775ef04dbb7a7d9bdc7813 commit: 534369f45a07089970f310a90978057da74504eb Author: Mike Gilbert gentoo org> AuthorDate: Sun Nov 17 22:56:23 2019 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sun Nov 17 22:58:59 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=534369f4 dev-python/pycparser: ensure modules are compiled Package-Manager: Portage-2.3.79_p3, Repoman-2.3.18_p2 Signed-off-by: Mike Gilbert gentoo.org> ...{pycparser-2.19.ebuild => pycparser-2.19-r1.ebuild} | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/dev-python/pycparser/pycparser-2.19.ebuild b/dev-python/pycparser/pycparser-2.19-r1.ebuild similarity index 76% rename from dev-python/pycparser/pycparser-2.19.ebuild rename to dev-python/pycparser/pycparser-2.19-r1.ebuild index 3f40a0e4ed7..3b8d5a5df7d 100644 --- a/dev-python/pycparser/pycparser-2.19.ebuild +++ b/dev-python/pycparser/pycparser-2.19-r1.ebuild @@ -32,18 +32,14 @@ python_prepare_all() { distutils-r1_python_prepare_all } -python_compile() { - distutils-r1_python_compile - - # note: tables built by py3.5+ are incompatible with older versions - # because of 100 group limit of 're' module -- just generate them - # separately optimized for each target instead - pushd "${BUILD_DIR}"/lib/pycparser > /dev/null || die - "${PYTHON}" _build_tables.py || die - popd > /dev/null || die -} - python_test() { # change workdir to avoid '.' import nosetests -v -w tests || die } + +python_install() { + distutils-r1_python_install + + # setup.py generates {c_ast,lextab,yacctab}.py with bytecode disabled. + python_optimize +}