public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-python] [PATCHES] Cleaning python_foreach_impl() up and introduce a parallel variant
@ 2013-02-21 22:07 Michał Górny
  2013-02-21 22:10 ` [gentoo-python] [PATCH 1/5] Make python_foreach_impl() non-fatal Michał Górny
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Michał Górny @ 2013-02-21 22:07 UTC (permalink / raw
  To: gentoo-python; +Cc: python

[-- Attachment #1: Type: text/plain, Size: 1592 bytes --]

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.


-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-02-24 10:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-21 22:07 [gentoo-python] [PATCHES] Cleaning python_foreach_impl() up and introduce a parallel variant Michał Górny
2013-02-21 22:10 ` [gentoo-python] [PATCH 1/5] Make python_foreach_impl() non-fatal Michał Górny
2013-02-21 22:10 ` [gentoo-python] [PATCH 2/5] Introduce python_parallel_foreach_impl() Michał Górny
2013-02-21 22:10 ` [gentoo-python] [PATCH 3/5] Init&finish multijob inside d-r1_run_foreach_impl() Michał Górny
2013-02-21 22:10 ` [gentoo-python] [PATCH 4/5] Use python_parallel_foreach_impl() in distutils-r1 Michał Górny
2013-02-21 22:10 ` [gentoo-python] [PATCH 5/5] Re-enable split logs, now in python*_foreach_impl() Michał Górny
2013-02-24  1:42   ` [gentoo-python] " Mike Gilbert
2013-02-24 10:03     ` Michał Górny
2013-02-24  1:45 ` [gentoo-python] Re: [PATCHES] Cleaning python_foreach_impl() up and introduce a parallel variant Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox