From: | "Brian Harring (ferringb)" <ferringb@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/snakeoil/files: snakeoil-0.4-lib2to3.patch |
Date: | Wed, 27 Apr 2011 16:41:03 |
Message-Id: | 20110427164054.3609520057@flycatcher.gentoo.org |
1 | ferringb 11/04/27 16:40:54 |
2 | |
3 | Added: snakeoil-0.4-lib2to3.patch |
4 | Log: |
5 | work around USE=-threads and the resultant affects on lib2to3; can't install for py3k in that scenario, so no revbump necessary |
6 | |
7 | (Portage version: 2.1.9.44/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-python/snakeoil/files/snakeoil-0.4-lib2to3.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/snakeoil/files/snakeoil-0.4-lib2to3.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/snakeoil/files/snakeoil-0.4-lib2to3.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: snakeoil-0.4-lib2to3.patch |
16 | =================================================================== |
17 | From 018c3d371ff511525666d62fb71e589e193ace55 Mon Sep 17 00:00:00 2001 |
18 | From: Brian Harring <ferringb@×××××.com> |
19 | Date: Wed, 27 Apr 2011 09:21:06 -0700 |
20 | Subject: [PATCH] handle lack of multiprocessing and the affect it has on lib2to3 apis |
21 | |
22 | --- |
23 | snakeoil/distutils_extensions.py | 3 ++- |
24 | 1 files changed, 2 insertions(+), 1 deletions(-) |
25 | |
26 | diff --git a/snakeoil/distutils_extensions.py b/snakeoil/distutils_extensions.py |
27 | index e4c0672..2a758a4 100644 |
28 | --- a/snakeoil/distutils_extensions.py |
29 | +++ b/snakeoil/distutils_extensions.py |
30 | @@ -243,7 +243,8 @@ class build_py(dst_build_py.build_py): |
31 | f = refactor_kls(fixer_names, options=options).refactor |
32 | |
33 | def f2(*args, **kwds): |
34 | - kwds['num_processes'] = proc_count |
35 | + if caching_2to3.multiprocessing_available: |
36 | + kwds['num_processes'] = proc_count |
37 | return f(*args, **kwds) |
38 | |
39 | return f2 |
40 | -- |
41 | 1.7.4.1 |