[Python-modules-commits] r17433 - in packages/python-peak.util/trunk (5 files)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Mon Jun 13 20:57:21 UTC 2011


    Date: Monday, June 13, 2011 @ 20:57:20
  Author: eriol-guest
Revision: 17433

Use a patch to add the setup.py which take care of invocation of multiple setup.py in subdir provided by Stefano Zacchiroli

Added:
  packages/python-peak.util/trunk/debian/patches/
  packages/python-peak.util/trunk/debian/patches/01_invoke-multiple-setup.patch
  packages/python-peak.util/trunk/debian/patches/series
Modified:
  packages/python-peak.util/trunk/debian/changelog
Deleted:
  packages/python-peak.util/trunk/setup.py

Modified: packages/python-peak.util/trunk/debian/changelog
===================================================================
--- packages/python-peak.util/trunk/debian/changelog	2011-06-13 19:22:57 UTC (rev 17432)
+++ packages/python-peak.util/trunk/debian/changelog	2011-06-13 20:57:20 UTC (rev 17433)
@@ -7,10 +7,13 @@
     - Removed Debian QA Group and added Debian Python Modules Team to
       Maintainer
     - Added myself to Uploaders (Closes: #607083)
+  * debian/patches/01_invoke-multiple-setup.patch
+    - Use a patch to add the setup.py which take care of invocation
+      of multiple setup.py in subdir provided by Stefano Zacchiroli
   * debian/source/format
     - Switched to source format 3.0 (quilt)
 
- -- Daniele Tricoli <eriol at mornie.org>  Mon, 13 Jun 2011 04:01:24 +0200
+ -- Daniele Tricoli <eriol at mornie.org>  Mon, 13 Jun 2011 22:39:56 +0200
 
 python-peak.util (20090610-3) unstable; urgency=low
 

Added: packages/python-peak.util/trunk/debian/patches/01_invoke-multiple-setup.patch
===================================================================
--- packages/python-peak.util/trunk/debian/patches/01_invoke-multiple-setup.patch	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/patches/01_invoke-multiple-setup.patch	2011-06-13 20:57:20 UTC (rev 17433)
@@ -0,0 +1,34 @@
+Description: Multiplexer for invoking multiple setup.py in subdir
+Author: Stefano Zacchiroli <zack at debian.org>
+Forwarded: not-needed
+--- /dev/null
++++ b/setup.py
+@@ -0,0 +1,28 @@
++#!/usr/bin/python
++# Multiplexer for invoking multiple setup.py in subdir
++# Copyright (C) 2009 Stefano Zacchiroli <zack at debian.org>
++# License: GNU GPL version 3 or above
++
++# Created: Sat, 30 May 2009 14:47:04 +0200
++# Last-Modified: Sat, 30 May 2009 14:47:04 +0200
++
++import os, string, sys
++
++if not os.environ.has_key('SUBDIRS') or not os.environ['SUBDIRS']:
++    print >> sys.stderr, "Can't find subdirs, please set SUBDIRS envvar"
++    sys.exit(3)
++else:
++    subdirs = os.environ['SUBDIRS'].split()
++setup_cmd = "python setup.py %s" % string.join(sys.argv[1:])
++
++topdir = os.getcwd()
++for d in subdirs:
++    if not os.path.isdir(d):
++        print >> sys.stderr, "WARNING: can't find subdir %s" % d
++        continue
++    os.chdir(d)
++    retcode = os.system(setup_cmd)
++    if retcode:
++        print >> sys.stderr, "ERROR: setup.py in subdir %s failed" % d
++        sys.exit(retcode >> 8)
++    os.chdir(topdir)

Added: packages/python-peak.util/trunk/debian/patches/series
===================================================================
--- packages/python-peak.util/trunk/debian/patches/series	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/patches/series	2011-06-13 20:57:20 UTC (rev 17433)
@@ -0,0 +1 @@
+01_invoke-multiple-setup.patch

Deleted: packages/python-peak.util/trunk/setup.py
===================================================================
--- packages/python-peak.util/trunk/setup.py	2011-06-13 19:22:57 UTC (rev 17432)
+++ packages/python-peak.util/trunk/setup.py	2011-06-13 20:57:20 UTC (rev 17433)
@@ -1,28 +0,0 @@
-#!/usr/bin/python
-# Multiplexer for invoking multiple setup.py in subdir
-# Copyright (C) 2009 Stefano Zacchiroli <zack at debian.org>
-# License: GNU GPL version 3 or above
-
-# Created: Sat, 30 May 2009 14:47:04 +0200
-# Last-Modified: Sat, 30 May 2009 14:47:04 +0200
-
-import os, string, sys
-
-if not os.environ.has_key('SUBDIRS') or not os.environ['SUBDIRS']:
-    print >> sys.stderr, "Can't find subdirs, please set SUBDIRS envvar"
-    sys.exit(3)
-else:
-    subdirs = os.environ['SUBDIRS'].split()
-setup_cmd = "python setup.py %s" % string.join(sys.argv[1:])
-
-topdir = os.getcwd()
-for d in subdirs:
-    if not os.path.isdir(d):
-        print >> sys.stderr, "WARNING: can't find subdir %s" % d
-        continue
-    os.chdir(d)
-    retcode = os.system(setup_cmd)
-    if retcode:
-        print >> sys.stderr, "ERROR: setup.py in subdir %s failed" % d
-        sys.exit(retcode >> 8)
-    os.chdir(topdir)




More information about the Python-modules-commits mailing list