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 D022A139694 for ; Sat, 20 May 2017 08:56:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B26D1E0ECB; Sat, 20 May 2017 08:56:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 69B03E0EC1 for ; Sat, 20 May 2017 08:56:25 +0000 (UTC) Received: from localhost.localdomain (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id D0D243416A6; Sat, 20 May 2017 08:56:23 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: python@gentoo.org Subject: [gentoo-dev] [PATCHES] python-r1 suite: minor fixes Date: Sat, 20 May 2017 10:56:12 +0200 Message-Id: <20170520085616.5602-1-mgorny@gentoo.org> X-Mailer: git-send-email 2.13.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 772d0730-e89a-4231-b581-c1e3fce13ebf X-Archives-Hash: 89970b842b072b40ce435cc8cbba9eea Hi, Here's a quick set of minor patches to python-r1 suite. It mostly includes some fixes to issues I've noticed while working on something bigger ;-). The first patch merely fixes missing 'local' for a variable. The second adds REQUIRED_USE to the python_setup() use example in python-r1. The third converts distutils-r1 common impl support to use the new pattern matching function (which is an omission from the original set of patches). The fourth patch is most interesting of all -- it makes the pattern matching work well with mismatched PYTHON_COMPAT/EPYTHON-style impls. This makes the API more lax, and avoids requiring users to be aware of technically implied impl style restrictions, i.e. having to write: REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2_*') ) )" src_compile() { use doc && python_setup 'python2.*' } Note that flags used PYTHON_COMPAT form (with '_') while setup functions used EPYTHON form (with '.'). Now both are equally happy with both forms. -- Best regards, Michał Górny