From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 41856198005 for ; Thu, 21 Feb 2013 22:07:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA76AE0021; Thu, 21 Feb 2013 22:07:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D2947E0021 for ; Thu, 21 Feb 2013 22:07:15 +0000 (UTC) Received: from pomiocik.lan (unknown [213.195.173.220]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id C5A0433E0B3; Thu, 21 Feb 2013 22:07:13 +0000 (UTC) Date: Thu, 21 Feb 2013 23:07:24 +0100 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: gentoo-python@lists.gentoo.org Cc: python@gentoo.org Subject: [gentoo-python] [PATCHES] Cleaning python_foreach_impl() up and introduce a parallel variant Message-ID: <20130221230724.15b66f86@pomiocik.lan> Organization: Gentoo X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.16; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/HK2HL05/f6rQlqooMIZkLS/"; protocol="application/pgp-signature" X-Archives-Salt: b7e6100b-0c06-4e72-8443-1fdaffa3bcc9 X-Archives-Hash: 4746baf604fd600cce7fb6f0626a91a4 --Sig_/HK2HL05/f6rQlqooMIZkLS/ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I'm sending a batch of patches (git-kind of replies to this mail). The patches do the following: 1) clean up failure handling in python_foreach_impl(). Currently, python_foreach_impl supposedly dies if one of the functions returns failure. This is quite unnecessary since most of the functions called there are supposed to be fatal themselves, and may be a bit confusing. The idea is that: python_foreach_impl foo should be as close to: for x in ...; do foo; done as possible. The implicit '|| die' doesn't really look helpful since it may hurt people with small unimportant conditionals at the end of their functions, and may cause a few others to actually rely on python_foreach_impl handling failures for them. Therefore, the function is not fatal anymore. Instead, it just returns 0 for complete success or status of first failure. In any case, the thingie called should 'die' on itself. 2) introduce a parallel variant of python_foreach_impl(). Based on the code from distutils-r1. For that reason and compatibility, the variable controlling no of jobs is still being called 'DISTUTILS_JOBS'. The new function is also used in distutils-r1, with the two last patches doing pre-merge cleanup and actually using it. 3) move split log handling into python*_foreach_impl(). With the parallel build feature no longer being distutils-specific, the split logs shall be accessible outside of it. Therefore, I have moved their support completely to python*_foreach_impl() functions. --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/HK2HL05/f6rQlqooMIZkLS/ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQJ8BAEBCgBmBQJRJpqeXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RUJGMjBGOTk2RkIzQzIyQ0M2RkNBNDBC QUJGMUQ1RkY4QzgxMTBBAAoJELq/HV/4yBEK12cQAKp9eyH79LEBN8lYOv9DD1eY T+iiENJcKd20iYx8HUBLNFVSMKHRSy6AiYlv+iOx+K9A6ArRGKl4D0iLMjGJ9TPA mf2W6mac1YMNBIyF9hd+aBQxC/o+GO2urFgEelo6SkUGR4V1wBsel5YulyC8itwh 6s05RoxwhIqr+GCjHY1oxpViTOiEK/LKf78BfaJwMPFo3zJ5iiVCsOzHpjzaV+Fj gNtvcoL8hFVMNhTvh7kvwbIbZeNlnfooVR8mqT05iad3Yq2s94g0g5FIoNTdtNnO FBTCbm+olPLbH9LycJceMPkx46IeYofH/cs6gHWmXM4yTBLeQiLteNbeWXPV7evM kCf1X4pfzcKO9xmyNeqgnMgT1rsnWoJyUg4pbE2q2yOXuI1veNMF7b3ympOi9JjQ rvWlHAP5FURmoe2DE6fIE7i9YLvnNVdUGXXn8YFK6aYed1Yz9W2j2fNm1oG0iWcl uvpAbuEADD2G/5TOJ37sX/22bDK0+gwS65eZFVq/dRm0PP8VnY7RgkaFo9JptH06 66UuAG6p2vUbFZUoBOuoc3ZQC1H00RJNhXSHc+7GxKfKfZnS/tTM9ANMpRAJsTYX 6yzZt+gqtAXzubuka7/Jl/53D2GwNGCadoO3ZkSe6iR0/jXOLlihMfhXwVJmn9uE u2nLUH/ZKzJihfjCq2NS =oSaf -----END PGP SIGNATURE----- --Sig_/HK2HL05/f6rQlqooMIZkLS/--