[Python-modules-commits] r21751 - in packages/ipython/trunk/debian (3 files)
jtaylor-guest at users.alioth.debian.org
jtaylor-guest at users.alioth.debian.org
Mon May 14 19:52:51 UTC 2012
Date: Monday, May 14, 2012 @ 19:52:49
Author: jtaylor-guest
Revision: 21751
add parallel-2to3.patch
allow running 2to3 in parallel via DEB_BUILD_OPTIONS.
Thanks to Jakub Wilk for the patch.
Added:
packages/ipython/trunk/debian/patches/parallel-2to3.patch
Modified:
packages/ipython/trunk/debian/changelog
packages/ipython/trunk/debian/patches/series
Modified: packages/ipython/trunk/debian/changelog
===================================================================
--- packages/ipython/trunk/debian/changelog 2012-05-14 19:14:55 UTC (rev 21750)
+++ packages/ipython/trunk/debian/changelog 2012-05-14 19:52:49 UTC (rev 21751)
@@ -3,8 +3,10 @@
* add ipython3 depend on python3-simplegeneric and remove the embedded copy
* update use-system-mathjax-if-available.patch:
prefer local mathjax installation over the system one
+ * add parallel-2to3.patch:
+ allow running 2to3 in parallel. Thanks to Jakub Wilk for the patch
- -- Julian Taylor <jtaylor.debian at googlemail.com> Mon, 14 May 2012 00:44:40 +0200
+ -- Julian Taylor <jtaylor.debian at googlemail.com> Mon, 14 May 2012 21:46:25 +0200
ipython (0.12.1+dfsg-1) unstable; urgency=low
Added: packages/ipython/trunk/debian/patches/parallel-2to3.patch
===================================================================
--- packages/ipython/trunk/debian/patches/parallel-2to3.patch (rev 0)
+++ packages/ipython/trunk/debian/patches/parallel-2to3.patch 2012-05-14 19:52:49 UTC (rev 21751)
@@ -0,0 +1,24 @@
+Description: allow running 2to3 in parallel
+Author: Jakub Wilk
+Forwarded: takowl at gmail.com
+
+--- a/setup3.py
++++ b/setup3.py
+@@ -20,6 +20,17 @@
+ setup_args.update(bdist_wininst_options())
+
+ def main():
++ num_processes = 1
++ for option in os.environ.get('DEB_BUILD_OPTIONS', '').split():
++ if option.startswith('parallel='):
++ num_processes = int(option.split('=', 1)[1])
++ if num_processes > 1:
++ import lib2to3.refactor
++ class RefactoringTool(lib2to3.refactor.MultiprocessRefactoringTool):
++ def refactor(self, items, write=False, doctests_only=False):
++ return lib2to3.refactor.MultiprocessRefactoringTool.refactor(self, items, write=write, num_processes=num_processes,
++ doctests_only=doctests_only)
++ lib2to3.refactor.RefactoringTool = RefactoringTool
+ setup(use_2to3 = True, **setup_args)
+
+ if __name__ == "__main__":
Modified: packages/ipython/trunk/debian/patches/series
===================================================================
--- packages/ipython/trunk/debian/patches/series 2012-05-14 19:14:55 UTC (rev 21750)
+++ packages/ipython/trunk/debian/patches/series 2012-05-14 19:52:49 UTC (rev 21751)
@@ -3,3 +3,4 @@
debianize-error-messages.patch
use-ipython-icon-in-desktop-files.patch
use-system-mathjax-if-available.patch
+parallel-2to3.patch
More information about the Python-modules-commits
mailing list