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

zack at users.alioth.debian.org zack at users.alioth.debian.org
Wed Jun 10 14:30:19 UTC 2009


    Date: Wednesday, June 10, 2009 @ 14:30:18
  Author: zack
Revision: 8765

first packaging draft

Added:
  packages/python-peak.util/trunk/debian/README.source
  packages/python-peak.util/trunk/debian/TODO
  packages/python-peak.util/trunk/debian/changelog
  packages/python-peak.util/trunk/debian/compat
  packages/python-peak.util/trunk/debian/copyright
  packages/python-peak.util/trunk/debian/get-orig-source.mk
  packages/python-peak.util/trunk/debian/peak.util-addons.watch
  packages/python-peak.util/trunk/debian/peak.util-bytecodeassembler.watch
  packages/python-peak.util/trunk/debian/peak.util-extremes.watch
  packages/python-peak.util/trunk/debian/peak.util-symboltype.watch
  packages/python-peak.util/trunk/debian/rules
  packages/python-peak.util/trunk/setup.py
    (from rev 8762, packages/python-repoze.who-plugins/trunk/setup.py)

Added: packages/python-peak.util/trunk/debian/README.source
===================================================================
--- packages/python-peak.util/trunk/debian/README.source	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/README.source	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1,47 @@
+
+Upgrade to a new upstream
+=========================
+
+This package is a multi-upstream source package, i.e., its
+.orig.tar.gz is composed by several upstream tarballs, possibly
+released by independent authors.
+
+To obtain a new orig tarball you can invoke the get-orig-source target
+of debian/rules as follows:
+
+   $ debian/rules get-orig-source
+
+If all goes well, that should leave aroung a tarball called
+
+   PACKAGE-YYYYMMDD.orig.tar.gz
+
+where PACKAGE is the source package name and YYYYMMDD is today's date
+in year/month/day format.
+
+Note that the target does not check whether creating a new upstream
+version is needed: invoke it only if you know that some of the
+upstream parts of this package need updates. Otherwise, use "apt-get
+source PACKAGE" to work on the latest uploaded upstream release.
+
+
+Adding a new utility
+====================
+
+As this is a utility collection package, it is natural to expect that
+in the future new utilities will be added. To add one to the package
+follow a few simple rules:
+
+1) add the module name (usually the egg name) to the $(UPSTREAMS)
+   Makefile variable in debian/rules
+
+2) add the per-utility watch file as debian/NAME.watch, where NAME is
+   the module name
+
+3) add license and copyright information about the new module to
+   debian/copyright
+
+4) run "debian/rules get-orig-source" to recreate the new tarball
+
+
+ -- Stefano Zacchiroli <zack at debian.org>, Wed, 10 Jun 2009 16:03:55 +0200
+

Added: packages/python-peak.util/trunk/debian/TODO
===================================================================
--- packages/python-peak.util/trunk/debian/TODO	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/TODO	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1 @@
+- ship examples and docs for every shipped utility

Added: packages/python-peak.util/trunk/debian/changelog
===================================================================
--- packages/python-peak.util/trunk/debian/changelog	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/changelog	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1,5 @@
+python-peak.util (20090610-1) experimental; urgency=low
+
+  * First release (Closes: #XXXXX)
+
+ -- Stefano Zacchiroli <zack at debian.org>  Wed, 10 Jun 2009 16:04:32 +0200

Added: packages/python-peak.util/trunk/debian/compat
===================================================================
--- packages/python-peak.util/trunk/debian/compat	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/compat	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1 @@
+7

Added: packages/python-peak.util/trunk/debian/copyright
===================================================================
--- packages/python-peak.util/trunk/debian/copyright	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/copyright	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1,269 @@
+This package was debianized by Stefano Zacchiroli <zack at debian.org> on
+Wed, 10 Jun 2009 16:05:10 +0200.
+
+Most of the files shipped by pthon-peak.util are under the
+BSD-like license reported below and available from
+http://www.repoze.org/LICENSE.txt
+In the reminder of this copyright file they are marked as licensed
+under the "BSD-repoze" license.
+
+Files: *
+Copyright: Copyright © 2006-200 Phillipp J .Eby <peak at eby-sarna.com>
+License: PSF or ZPL
+ Dual-licensing under both the Python Software Foundation (PSF)
+ license and the Zope Public License (ZPL).
+
+Files: debian/*
+Copyright: Copyright © 2009 Stefano Zacchiroli <zack at debian.org>
+License: GPL-3+
+ On Debian systems the full text of the GNU General Public License can
+ be found in the `/usr/share/common-licenses/GPL-3' file.
+
+License: PSF
+ PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
+ --------------------------------------------
+ 
+ 1. This LICENSE AGREEMENT is between the Python Software Foundation
+ ("PSF"), and the Individual or Organization ("Licensee") accessing
+ and otherwise using this software ("Python") in source or binary form
+ and its associated documentation.
+ 
+ 2. Subject to the terms and conditions of this License Agreement, PSF
+ hereby grants Licensee a nonexclusive, royalty-free, world-wide
+ license to reproduce, analyze, test, perform and/or display publicly,
+ prepare derivative works, distribute, and otherwise use Python alone
+ or in any derivative version, provided, however, that PSF's License
+ Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001,
+ 2002, 2003, 2004, 2005, 2006 Python Software Foundation; All Rights
+ Reserved" are retained in Python alone or in any derivative version
+ prepared by Licensee.
+ 
+ 3. In the event Licensee prepares a derivative work that is based on
+ or incorporates Python or any part thereof, and wants to make the
+ derivative work available to others as provided herein, then Licensee
+ hereby agrees to include in any such work a brief summary of the
+ changes made to Python.
+ 
+ 4. PSF is making Python available to Licensee on an "AS IS"
+ basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR
+ FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
+ INFRINGE ANY THIRD PARTY RIGHTS.
+ 
+ 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+ FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A
+ RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY
+ DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+ 
+ 6. This License Agreement will automatically terminate upon a
+ material breach of its terms and conditions.
+ 
+ 7. Nothing in this License Agreement shall be deemed to create any
+ relationship of agency, partnership, or joint venture between PSF and
+ Licensee. This License Agreement does not grant permission to use PSF
+ trademarks or trade name in a trademark sense to endorse or promote
+ products or services of Licensee, or any third party.
+ 
+ 8. By copying, installing or otherwise using Python, Licensee agrees
+ to be bound by the terms and conditions of this License Agreement.
+ 
+ BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
+ -------------------------------------------
+ 
+ BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
+ 
+ 1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
+ office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
+ Individual or Organization ("Licensee") accessing and otherwise using
+ this software in source or binary form and its associated
+ documentation ("the Software").
+ 
+ 2. Subject to the terms and conditions of this BeOpen Python License
+ Agreement, BeOpen hereby grants Licensee a non-exclusive,
+ royalty-free, world-wide license to reproduce, analyze, test, perform
+ and/or display publicly, prepare derivative works, distribute, and
+ otherwise use the Software alone or in any derivative version,
+ provided, however, that the BeOpen Python License is retained in the
+ Software, alone or in any derivative version prepared by Licensee.
+ 
+ 3. BeOpen is making the Software available to Licensee on an "AS IS"
+ basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR
+ FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE
+ WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
+ 
+ 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
+ SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
+ LOSS AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR
+ ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+ 
+ 5. This License Agreement will automatically terminate upon a
+ material breach of its terms and conditions.
+ 
+ 6. This License Agreement shall be governed by and interpreted in all
+ respects by the law of the State of California, excluding conflict of
+ law provisions. Nothing in this License Agreement shall be deemed to
+ create any relationship of agency, partnership, or joint venture
+ between BeOpen and Licensee. This License Agreement does not grant
+ permission to use BeOpen trademarks or trade names in a trademark
+ sense to endorse or promote products or services of Licensee, or any
+ third party. As an exception, the "BeOpen Python" logos available at
+ http://www.pythonlabs.com/logos.html may be used according to the
+ permissions granted on that web page.
+ 
+ 7. By copying, installing or otherwise using the software, Licensee
+ agrees to be bound by the terms and conditions of this License
+ Agreement.
+ 
+ CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
+ ---------------------------------------
+ 
+ 1. This LICENSE AGREEMENT is between the Corporation for National
+ Research Initiatives, having an office at 1895 Preston White Drive,
+ Reston, VA 20191 ("CNRI"), and the Individual or Organization
+ ("Licensee") accessing and otherwise using Python 1.6.1 software in
+ source or binary form and its associated documentation.
+ 
+ 2. Subject to the terms and conditions of this License Agreement,
+ CNRI hereby grants Licensee a nonexclusive, royalty-free, world-wide
+ license to reproduce, analyze, test, perform and/or display publicly,
+ prepare derivative works, distribute, and otherwise use Python 1.6.1
+ alone or in any derivative version, provided, however, that CNRI's
+ License Agreement and CNRI's notice of copyright, i.e., "Copyright
+ (c) 1995-2001 Corporation for National Research Initiatives; All
+ Rights Reserved" are retained in Python 1.6.1 alone or in any
+ derivative version prepared by Licensee. Alternately, in lieu of
+ CNRI's License Agreement, Licensee may substitute the following text
+ (omitting the quotes): "Python 1.6.1 is made available subject to the
+ terms and conditions in CNRI's License Agreement. This Agreement
+ together with Python 1.6.1 may be located on the Internet using the
+ following unique, persistent identifier (known as a handle):
+ 1895.22/1013. This Agreement may also be obtained from a proxy server
+ on the Internet using the following URL:
+ http://hdl.handle.net/1895.22/1013".
+ 
+ 3. In the event Licensee prepares a derivative work that is based on
+ or incorporates Python 1.6.1 or any part thereof, and wants to make
+ the derivative work available to others as provided herein, then
+ Licensee hereby agrees to include in any such work a brief summary of
+ the changes made to Python 1.6.1.
+ 
+ 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
+ basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR
+ FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1
+ WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
+ 
+ 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+ 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
+ AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON
+ 1.6.1, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY
+ THEREOF.
+ 
+ 6. This License Agreement will automatically terminate upon a
+ material breach of its terms and conditions.
+ 
+ 7. This License Agreement shall be governed by the federal
+ intellectual property law of the United States, including without
+ limitation the federal copyright law, and, to the extent such
+ U.S. federal law does not apply, by the law of the Commonwealth of
+ Virginia, excluding Virginia's conflict of law provisions.
+ Notwithstanding the foregoing, with regard to derivative works based
+ on Python 1.6.1 that incorporate non-separable material that was
+ previously distributed under the GNU General Public License (GPL),
+ the law of the Commonwealth of Virginia shall govern this License
+ Agreement only as to issues arising under or with respect to
+ Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
+ License Agreement shall be deemed to create any relationship of
+ agency, partnership, or joint venture between CNRI and Licensee. This
+ License Agreement does not grant permission to use CNRI trademarks or
+ trade name in a trademark sense to endorse or promote products or
+ services of Licensee, or any third party.
+ 
+ 8. By clicking on the "ACCEPT" button where indicated, or by copying,
+ installing or otherwise using Python 1.6.1, Licensee agrees to be
+ bound by the terms and conditions of this License Agreement.
+ 
+ ACCEPT
+ 
+ CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
+ --------------------------------------------------
+ 
+ Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
+ The Netherlands. All rights reserved.
+ 
+ Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose and without fee is hereby granted,
+ provided that the above copyright notice appear in all copies and
+ that both that copyright notice and this permission notice appear in
+ supporting documentation, and that the name of Stichting Mathematisch
+ Centrum or CWI not be used in advertising or publicity pertaining to
+ distribution of the software without specific, written prior
+ permission.
+ 
+ STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD
+ TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE
+ LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
+ DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ OF THIS SOFTWARE.
+ 
+License: ZPL
+ Zope Public License (ZPL) Version 2.0
+ -----------------------------------------------
+ 
+ This software is Copyright (c) Zope Corporation (tm) and
+ Contributors. All rights reserved.
+ 
+ This license has been certified as open source. It has also been
+ designated as GPL compatible by the Free Software Foundation (FSF).
+ 
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 
+ 1. Redistributions in source code must retain the above copyright
+    notice, this list of conditions, and the following disclaimer.
+ 
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions, and the following disclaimer in
+    the documentation and/or other materials provided with the
+    distribution.
+ 
+ 3. The name Zope Corporation (tm) must not be used to endorse or
+    promote products derived from this software without prior written
+    permission from Zope Corporation.
+ 
+ 4. The right to distribute this software or to use it for any purpose
+    does not give you the right to use Servicemarks (sm) or Trademarks
+    (tm) of Zope Corporation. Use of them is covered in a separate
+    agreement (see http://www.zope.com/Marks).
+ 
+ 5. If any files are modified, you must cause the modified files to
+    carry prominent notices stating that you changed the files and the
+    date of any change.
+ 
+ Disclaimer
+ 
+   THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS'' AND ANY
+   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+   PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL ZOPE CORPORATION OR ITS
+   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+   USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+   OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+   OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+   SUCH DAMAGE.
+ 
+ This software consists of contributions made by Zope Corporation and
+ many individuals on behalf of Zope Corporation.  Specific
+ attributions are listed in the accompanying credits file.
+

Added: packages/python-peak.util/trunk/debian/get-orig-source.mk
===================================================================
--- packages/python-peak.util/trunk/debian/get-orig-source.mk	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/get-orig-source.mk	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1,36 @@
+# debian/rules snippet for creating multi-upstream tarball relying on
+# several debian/*.watch files
+
+# Copyright © 2009 Stefano Zacchiroli <zack at debian.org>
+# License: GNU GPL version 3 or above
+# Created: Sat, 30 May 2009 11:58:16 +0200
+# Last-Modified: Wed, 10 Jun 2009 16:18:41 +0200
+
+# TODO: does not yet fully implement policy wrt get-orig-source:
+#       - the target cannot be invoked from any dir (rely on "debian/")
+#       - tmpdir handling is not fully safe (e.g., no "mktemp -d")
+
+GOSTMP = get-orig-source.tmp
+ORIGNAME = $(PKG)-$(shell date +%Y%m%d)
+ORIGTARBALL = $(PKG)_$(shell date +%Y%m%d).orig.tar.gz
+
+get-orig-source: $(patsubst %,%/get-orig-source,$(UPSTREAMS))
+	cd $(GOSTMP) && \
+	mkdir $(ORIGNAME) && \
+	for p in $(UPSTREAMS) ; do \
+		mv `readlink $$p` $(ORIGNAME) ; \
+		mv $$p $(ORIGNAME) ; \
+	done && \
+	tar cvzf $(ORIGTARBALL) $(ORIGNAME) && \
+	mv $(ORIGTARBALL) ../ && \
+	cd .. && \
+	rm -rf $(GOSTMP)/
+$(GOSTMP):
+	-mkdir $@
+%/get-orig-source: $(GOSTMP)
+	uscan --watchfile debian/$*.watch $(USCAN_EXTRA_ARGS) \
+		--upstream-version 0 --package $* \
+		--download --destdir $(GOSTMP)/
+	cd $(GOSTMP) && \
+	tar xzf $**.orig.tar.gz && \
+	ln -s `tar tzf $**.orig.tar.gz | head -n1` $*

Added: packages/python-peak.util/trunk/debian/peak.util-addons.watch
===================================================================
--- packages/python-peak.util/trunk/debian/peak.util-addons.watch	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/peak.util-addons.watch	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/A/AddOns/AddOns-([0-9a-z.]+)\.zip

Added: packages/python-peak.util/trunk/debian/peak.util-bytecodeassembler.watch
===================================================================
--- packages/python-peak.util/trunk/debian/peak.util-bytecodeassembler.watch	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/peak.util-bytecodeassembler.watch	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/B/BytecodeAssembler/BytecodeAssembler-([0-9a-z.]+)\.zip

Added: packages/python-peak.util/trunk/debian/peak.util-extremes.watch
===================================================================
--- packages/python-peak.util/trunk/debian/peak.util-extremes.watch	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/peak.util-extremes.watch	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/E/Extremes/Extremes-([0-9a-z.]+)\.zip

Added: packages/python-peak.util/trunk/debian/peak.util-symboltype.watch
===================================================================
--- packages/python-peak.util/trunk/debian/peak.util-symboltype.watch	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/peak.util-symboltype.watch	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/S/SymbolType/SymbolType-([0-9a-z.]+)\.zip

Added: packages/python-peak.util/trunk/debian/rules
===================================================================
--- packages/python-peak.util/trunk/debian/rules	                        (rev 0)
+++ packages/python-peak.util/trunk/debian/rules	2009-06-10 14:30:18 UTC (rev 8765)
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+DEB_PYTHON_SYSTEM = pysupport
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+
+PKG = python-peak.util
+UPSTREAMS = \
+	peak.util-addons \
+	peak.util-bytecodeassembler \
+	peak.util-extremes \
+	peak.util-symboltype \
+	$(NULL)
+export SUBDIRS = $(UPSTREAMS)
+
+DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
+
+# avoid installing tests: useless at runtime and prone to name clashes
+install/$(PKG)::
+	rm -rf debian/$(PKG)/usr/lib/python*/site-packages/tests/
+	rm -f debian/$(PKG)/usr/lib/python*/site-packages/*.pth
+
+USCAN_EXTRA_ARGS = --repack
+-include debian/get-orig-source.mk


Property changes on: packages/python-peak.util/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Copied: packages/python-peak.util/trunk/setup.py (from rev 8762, packages/python-repoze.who-plugins/trunk/setup.py)
===================================================================
--- packages/python-peak.util/trunk/setup.py	                        (rev 0)
+++ packages/python-peak.util/trunk/setup.py	2009-06-10 14:30:18 UTC (rev 8765)
@@ -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)




More information about the Python-modules-commits mailing list