[Reproducible-commits] [python-setuptools] 02/03: imported from python-setuptools_5.5.1-1.debian.tar.xz
Holger Levsen
holger at moszumanska.debian.org
Mon Mar 23 10:14:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch pu/reproducible_builds
in repository python-setuptools.
commit 6357974b13813fd351220d9e0e5df9a492db01c5
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Mar 23 11:09:56 2015 +0100
imported from python-setuptools_5.5.1-1.debian.tar.xz
---
debian/README.Debian | 6 +
debian/changelog | 427 ++++++++++++++++++++++++++++++++++
debian/compat | 1 +
debian/control | 78 +++++++
debian/copyright | 333 ++++++++++++++++++++++++++
debian/patches/install-layout.diff | 189 +++++++++++++++
debian/patches/multiarch-extname.diff | 81 +++++++
debian/patches/series | 2 +
debian/rules | 186 +++++++++++++++
debian/source/format | 1 +
debian/watch | 2 +
11 files changed, 1306 insertions(+)
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..292b4e4
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,6 @@
+python-setuptools for Debian
+----------------------------
+
+Snapshot, taken from the sandbox CVS.
+
+ -- Matthias Klose <m at klose.in-berlin.de>, Tue, 14 Dec 2004 12:45:14 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d83e0ee
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,427 @@
+python-setuptools (5.5.1-1) unstable; urgency=medium
+
+ * New upstream version. Closes: #754089.
+
+ -- Matthias Klose <doko at debian.org> Tue, 12 Aug 2014 13:50:59 +0200
+
+python-setuptools (5.4.1-1) unstable; urgency=medium
+
+ * New upstream version. Closes: #754089.
+
+ -- Matthias Klose <doko at debian.org> Mon, 07 Jul 2014 19:33:26 +0200
+
+python-setuptools (5.3-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Wed, 02 Jul 2014 00:18:03 +0200
+
+python-setuptools (4.0.1-1) unstable; urgency=medium
+
+ * New upstream version.
+ * Stop building for python 3.3. Closes: #751070.
+
+ -- Matthias Klose <doko at debian.org> Tue, 10 Jun 2014 17:38:45 +0200
+
+python-setuptools (3.6-1) unstable; urgency=medium
+
+ * New upstream version.
+ * Build a python-setuptools-whl package (Barry Warsaw). Closes: #748299.
+ * Fix installation of the html documentation. Closes: #737889, #748586.
+
+ -- Matthias Klose <doko at debian.org> Wed, 21 May 2014 11:19:00 +0200
+
+python-setuptools (3.4.4-1) unstable; urgency=medium
+
+ * New upstream version.
+ - Fix #184, build directory included into the package. Closes: #743644.
+
+ -- Matthias Klose <doko at debian.org> Sat, 12 Apr 2014 21:28:18 +0200
+
+python-setuptools (3.4.1-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Thu, 03 Apr 2014 22:02:29 +0200
+
+python-setuptools (3.3-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Sat, 22 Mar 2014 18:36:35 +0100
+
+python-setuptools (2.2-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Tue, 18 Feb 2014 14:59:08 +0100
+
+python-setuptools (2.1-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Sun, 26 Jan 2014 21:55:39 +0100
+
+python-setuptools (2.0.2-1) unstable; urgency=medium
+
+ * New upstream version.
+ * On installation with --install-layout=deb, rename extensions for
+ python 3.3 (and newer) to include the multiarch tag.
+ Renaming of extensions for python3.4 is currently not done by dh-python.
+ See Debian #733128.
+
+ -- Matthias Klose <doko at debian.org> Tue, 31 Dec 2013 13:08:43 +0100
+
+python-setuptools (2.0.1-2) unstable; urgency=medium
+
+ * Build for python3.4.
+
+ -- Matthias Klose <doko at debian.org> Thu, 26 Dec 2013 00:20:51 +0100
+
+python-setuptools (2.0.1-1) unstable; urgency=medium
+
+ * New upstream version.
+ * Depend on python:any/python3:any rather than python/python3.
+ * Rename python-distribute-doc to python-setuptools-doc.
+
+ -- Matthias Klose <doko at debian.org> Sat, 21 Dec 2013 20:40:24 +0100
+
+python-setuptools (1.4.2-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Mon, 02 Dec 2013 16:55:48 +0100
+
+python-setuptools (1.3.2-1) experimental; urgency=low
+
+ * New upstream version (converged setuptools / distribute release).
+
+ -- Matthias Klose <doko at debian.org> Mon, 11 Nov 2013 21:45:15 +0100
+
+distribute (0.6.49-2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix typo on python version in rules file. Closes: #715556.
+
+ -- Matthias Klose <doko at debian.org> Sun, 04 Aug 2013 12:21:20 +0200
+
+distribute (0.6.49-1) unstable; urgency=low
+
+ * New upstream version.
+ * Stop building for python3.2.
+
+ -- Matthias Klose <doko at debian.org> Sun, 04 Aug 2013 12:13:21 +0200
+
+distribute (0.6.37-1) unstable; urgency=low
+
+ * New upstream version.
+ * Stop building for python2.6. Closes: #707140.
+
+ -- Matthias Klose <doko at debian.org> Wed, 08 May 2013 23:55:38 +0200
+
+distribute (0.6.36-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Sun, 07 Apr 2013 21:56:28 +0200
+
+distribute (0.6.34-1) experimental; urgency=low
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Sun, 20 Jan 2013 17:46:12 +0100
+
+distribute (0.6.29-1) experimental; urgency=low
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Sun, 21 Oct 2012 19:41:01 +0200
+
+distribute (0.6.28-1) experimental; urgency=low
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Wed, 29 Aug 2012 11:43:26 +0200
+
+distribute (0.6.24-1) unstable; urgency=low
+
+ * New upstream version. Closes: #632516.
+
+ -- Matthias Klose <doko at debian.org> Sat, 22 Oct 2011 22:38:22 +0200
+
+distribute (0.6.16-1) unstable; urgency=medium
+
+ * New upstream version.
+ * Support Python >=3.1.4 and >=3.2.1.
+
+ -- Matthias Klose <doko at debian.org> Fri, 20 May 2011 11:30:25 +0200
+
+distribute (0.6.15-2) unstable; urgency=low
+
+ * Stop building for python2.5 and python3.1.
+
+ -- Matthias Klose <doko at debian.org> Mon, 18 Apr 2011 21:58:45 +0200
+
+distribute (0.6.15-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Mon, 21 Mar 2011 01:37:31 +0100
+
+distribute (0.6.14-5) experimental; urgency=low
+
+ * Build for python 2.7 and 3.2.
+
+ -- Matthias Klose <doko at debian.org> Thu, 14 Oct 2010 15:45:57 +0200
+
+distribute (0.6.14-4) unstable; urgency=low
+
+ * Upload to unstable.
+
+ -- Matthias Klose <doko at debian.org> Wed, 06 Oct 2010 01:54:38 +0200
+
+distribute (0.6.14-3) experimental; urgency=low
+
+ * Tighten build dependency on python3, remove b-d on python-central.
+
+ -- Matthias Klose <doko at debian.org> Sun, 12 Sep 2010 16:56:04 +0200
+
+distribute (0.6.14-2) experimental; urgency=low
+
+ * For python3, install into /usr/lib/python3/dist-packages by
+ default, when setup.py install is called with --install-layout=deb.
+
+ -- Matthias Klose <doko at debian.org> Thu, 09 Sep 2010 19:04:09 +0200
+
+distribute (0.6.14-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at debian.org> Sat, 17 Jul 2010 13:41:28 +0200
+
+distribute (0.6.10-4) unstable; urgency=low
+
+ * Don't include 3.1 related files in the filelists of python-* packages.
+ Closes: #574153.
+
+ -- Matthias Klose <doko at debian.org> Thu, 18 Mar 2010 12:27:47 +0100
+
+distribute (0.6.10-3) unstable; urgency=low
+
+ * Don't ship the python3 files in the python-* packages. Closes: #574079.
+
+ -- Matthias Klose <doko at debian.org> Tue, 16 Mar 2010 08:23:18 +0100
+
+distribute (0.6.10-2) unstable; urgency=low
+
+ * Build packages for python3.1.
+
+ -- Matthias Klose <doko at debian.org> Sun, 14 Mar 2010 16:51:00 +0100
+
+distribute (0.6.10-1) unstable; urgency=low
+
+ * New upstream version.
+ * Stop building for python2.4. Closes: #557000.
+
+ -- Matthias Klose <doko at debian.org> Mon, 28 Dec 2009 23:52:40 +0100
+
+distribute (0.6.8-1) unstable; urgency=low
+
+ * New upstream version.
+ * Stop building for python2.4. Closes: #557000.
+
+ -- Matthias Klose <doko at debian.org> Thu, 12 Nov 2009 02:12:16 +0100
+
+distribute (0.6.6-1) unstable; urgency=low
+
+ * New upstream version.
+ * Don't build python-distribute (yet). Move the egg-info into
+ python-setuptools. Closes: #552154.
+
+ -- Matthias Klose <doko at debian.org> Sat, 24 Oct 2009 13:13:23 +0200
+
+distribute (0.6.4-1) unstable; urgency=low
+
+ * Build python-setuptools from the `distribute' fork.
+
+ -- Matthias Klose <doko at debian.org> Tue, 20 Oct 2009 00:12:26 +0200
+
+python-setuptools (0.6c9-0ubuntu5) karmic; urgency=low
+
+ * Fix building extensions with recent python 2.6.2+. Patch taken from
+ http://bitbucket.org/tarek/distribute/issue/41/. LP: #428004.
+
+ -- Matthias Klose <doko at ubuntu.com> Sun, 13 Sep 2009 12:11:58 +0200
+
+python-setuptools (0.6c9-0ubuntu4) jaunty; urgency=low
+
+ * Update the installation schemes in easy_install to follow the modified
+ distutils install command:
+ - When the --prefix option is used for setup.py install, Use the
+ `posix' scheme. LP: #344410.
+ - Use the `deb_system' scheme if --install-layout=deb is specified.
+ - Use the the `unix_local' scheme if neither --install-layout=deb
+ nor --prefix is specified.
+ * Always use the `posix' scheme for setup.py install in a virtualenv
+ setup. LP: #339904.
+ * Error out when easy_install tries to install into /usr, unless the
+ (new) option --force-installation-into-system-dir is given (heh, this
+ option name is even longer than --single-version-externally-managed).
+
+ -- Matthias Klose <doko at ubuntu.com> Sat, 04 Apr 2009 13:13:59 +0200
+
+python-setuptools (0.6c9-0ubuntu3) jaunty; urgency=low
+
+ * Fix interpreter name for the easy_install-2.6 script. LP: #332656.
+
+ -- Matthias Klose <doko at ubuntu.com> Sun, 22 Feb 2009 22:25:32 +0100
+
+python-setuptools (0.6c9-0ubuntu2) jaunty; urgency=low
+
+ * Rebuild to add python2.6 support.
+
+ -- Matthias Klose <doko at ubuntu.com> Wed, 18 Feb 2009 19:05:11 +0100
+
+python-setuptools (0.6c9-0ubuntu1) intrepid; urgency=low
+
+ * New upstream version (bug fixes from the stable branch).
+ - Adds subversion 1.5 compatibility. LP: #262636.
+
+ -- Matthias Klose <doko at ubuntu.com> Thu, 25 Sep 2008 10:40:35 +0200
+
+python-setuptools (0.6c8-4) unstable; urgency=low
+
+ * Don't break with subversion-1.5. Closes: #489263.
+
+ -- Matthias Klose <doko at debian.org> Sat, 12 Jul 2008 09:25:36 +0200
+
+python-setuptools (0.6c8-3) unstable; urgency=low
+
+ * Move site.py into the python-pkg-resources package.
+
+ -- Matthias Klose <doko at debian.org> Wed, 09 Apr 2008 22:44:47 +0200
+
+python-setuptools (0.6c8-2) unstable; urgency=low
+
+ * python-pkg-resources: Conflict with python-setuptools. Closes: #468944.
+
+ -- Matthias Klose <doko at debian.org> Sun, 02 Mar 2008 15:34:10 +0100
+
+python-setuptools (0.6c8-1) unstable; urgency=low
+
+ * New upstream version. Closes: #467012.
+ * Split out a python-pkg-resources package (to be used as a runtime
+ dependency instead of python-setuptools).
+
+ -- Matthias Klose <doko at debian.org> Fri, 29 Feb 2008 01:20:15 +0100
+
+python-setuptools (0.6c7-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Matthias Klose <doko at ubuntu.com> Fri, 02 Nov 2007 10:57:34 -0400
+
+python-setuptools (0.6c6-1) unstable; urgency=low
+
+ * New upstream version (release candidate 6). Closes: #433556.
+
+ -- Matthias Klose <doko at debian.org> Wed, 25 Jul 2007 02:11:49 +0200
+
+python-setuptools (0.6c5-1ubuntu1) feisty; urgency=low
+
+ * Use the unversioned interpreter name for scripts without
+ version suffix. Ubuntu #94309.
+
+ -- Matthias Klose <doko at ubuntu.com> Thu, 29 Mar 2007 10:18:33 +0000
+
+python-setuptools (0.6c5-1) unstable; urgency=low
+
+ * New upstream version (release candidate 5).
+
+ -- Matthias Klose <doko at debian.org> Wed, 17 Jan 2007 18:00:39 +0000
+
+python-setuptools (0.6c3-3) unstable; urgency=low
+
+ * Drop 2.3.
+
+ -- Matthias Klose <doko at debian.org> Tue, 24 Oct 2006 00:47:58 +0200
+
+python-setuptools (0.6c3-2) unstable; urgency=low
+
+ * Build for 2.3, 2.4, 2.5.
+
+ -- Matthias Klose <doko at debian.org> Sun, 22 Oct 2006 22:03:03 +0000
+
+python-setuptools (0.6c3-1) unstable; urgency=medium
+
+ * New upstream version (release candidate 3). Closes: #389780.
+
+ -- Matthias Klose <doko at debian.org> Wed, 4 Oct 2006 00:49:36 +0200
+
+python-setuptools (0.6c2-1) unstable; urgency=low
+
+ * New upstream version (release candidate 2). Closes: #382573.
+ * /usr/bin/easy_install-2.3: Use python2.3 s interpreter. Closes: #386318.
+
+ -- Matthias Klose <doko at debian.org> Fri, 8 Sep 2006 03:19:43 +0200
+
+python-setuptools (0.6b3-3) unstable; urgency=low
+
+ * Workaround #375437.
+
+ -- Matthias Klose <doko at debian.org> Mon, 3 Jul 2006 14:08:53 +0000
+
+python-setuptools (0.6b3-2) unstable; urgency=low
+
+ * Add entry points for all versioned console scripts. Closes: #375975.
+
+ -- Matthias Klose <doko at debian.org> Sun, 2 Jul 2006 15:14:35 +0000
+
+python-setuptools (0.6b3-1) unstable; urgency=low
+
+ * New upstream version (closes: #354621).
+ - OverflowError for amd64 build fixed (closes: #352176).
+
+ -- Matthias Klose <doko at debian.org> Fri, 9 Jun 2006 22:14:10 +0200
+
+python-setuptools (0.6a8-0.1) unstable; urgency=low
+
+ * NMU with maintainer approval
+ * New upstream release
+ * debian/rules: Create setuptools.pth to instruct python where the
+ module is located. Closes: #330562
+
+ -- Otavio Salvador <otavio at debian.org> Thu, 24 Nov 2005 19:26:43 -0200
+
+python-setuptools (0.6a6-1) unstable; urgency=low
+
+ * New upstream version (closes: #335101).
+
+ -- Matthias Klose <doko at debian.org> Sun, 23 Oct 2005 13:14:22 +0000
+
+python-setuptools (0.6a2-0.1) unstable; urgency=low
+
+ * NMU with maintainer approval
+ * New upstream release
+ * Include a watch file to be easier to upgrade next time
+ * Bump Standards-Version to 3.6.2 (no changes need)
+ * Use Build-Depends-Indep since we don't build architecture dependent
+ packages
+ * Don't remove setuptools.egg-info directory on clean target since it's
+ used now on building system since it use entry_points feature to its
+ install
+
+ -- Otavio Salvador <otavio at debian.org> Sat, 24 Sep 2005 17:00:56 -0300
+
+python-setuptools (0.5a13-1) unstable; urgency=low
+
+ * New upstream version 0.5a13.
+
+ -- Matthias Klose <doko at debian.org> Mon, 18 Jul 2005 12:58:21 +0200
+
+python-setuptools (0.0.1.041214-0ubuntu1) hoary; urgency=low
+
+ * Initial Release.
+
+ -- Matthias Klose <m at klose.in-berlin.de> Tue, 14 Dec 2004 12:45:14 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..909bc10
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,78 @@
+Source: python-setuptools
+Section: python
+Priority: optional
+Maintainer: Matthias Klose <doko at debian.org>
+Build-Depends-Indep: python-all-dev (>= 2.6.6-2~), python3-all-dev (>= 3.1.2-8~),
+ python3.4-dev,
+ python-sphinx (>= 1.0.7+dfsg) | python3-sphinx,
+ python3-wheel
+Build-Depends: debhelper (>= 5.0.37.1)
+Standards-Version: 3.9.5
+Homepage: https://pypi.python.org/pypi/setuptools
+
+Package: python-pkg-resources
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Suggests: python-distribute, python-distribute-doc
+Conflicts: python-setuptools (<< 0.6c8-3)
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: Package Discovery and Resource Access using pkg_resources
+ The pkg_resources module provides an API for Python libraries to
+ access their resource files, and for extensible applications and
+ frameworks to automatically discover plugins. It also provides
+ runtime support for using C extensions that are inside zipfile-format
+ eggs, support for merging packages that have separately-distributed
+ modules or subpackages, and APIs for managing Python's current
+ "working set" of active packages.
+
+Package: python-setuptools
+Architecture: all
+Depends: ${python:Depends}, python-pkg-resources (= ${binary:Version}), ${misc:Depends}
+Conflicts: python-distribute (<< 0.7)
+Replaces: python-distribute (<< 0.6.6)
+Provides: ${python:Provides}, python-distribute
+XB-Python-Version: ${python:Versions}
+Description: Python Distutils Enhancements
+ Extensions to the python-distutils for large or complex distributions.
+
+Package: python-setuptools-doc
+Architecture: all
+Section: doc
+Depends: libjs-jquery, ${misc:Depends}
+Conflicts: python-distribute-doc
+Replaces: python-distribute-doc
+Description: Python Distutils Enhancements (documentation)
+ Extensions to the Python distutils for large or complex distributions.
+ The package contains the documentation in html format.
+
+Package: python3-pkg-resources
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Provides: ${python3:Provides}
+Suggests: python3-setuptools
+Conflicts: python-pkg-resources (= 0.6.10-2)
+Description: Package Discovery and Resource Access using pkg_resources
+ The pkg_resources module provides an API for Python libraries to
+ access their resource files, and for extensible applications and
+ frameworks to automatically discover plugins. It also provides
+ runtime support for using C extensions that are inside zipfile-format
+ eggs, support for merging packages that have separately-distributed
+ modules or subpackages, and APIs for managing Python's current
+ "working set" of active packages.
+
+Package: python3-setuptools
+Architecture: all
+Depends: ${python3:Depends}, python3-pkg-resources (= ${binary:Version}), ${misc:Depends}
+Provides: ${python3:Provides}
+Conflicts: python-setuptools (= 0.6.10-2)
+Description: Python3 Distutils Enhancements
+ Extensions to the python-distutils for large or complex distributions.
+
+Package: python-setuptools-whl
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: Python Distutils Enhancements (wheel package)
+ Extensions to the python-distutils for large or complex distributions.
+ .
+ This package provides setuptools in PEP 427 wheel format.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..36d961d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,333 @@
+This package was debianized by Matthias Klose <m at klose.in-berlin.de> on
+Tue, 14 Dec 2004 12:45:14 +0100.
+
+It was downloaded from
+http://pypi.python.org/pypi/distribute/
+
+Copyright:
+
+Upstream Author: Phillip J. Eby, Tarek Ziade and the distutils SIG
+
+License:
+
+PSF or ZPL (both appended in this file)
+
+
+PSF
+------------------------------------------------------------------------------
+
+A. HISTORY OF THE SOFTWARE
+==========================
+
+Python was created in the early 1990s by Guido van Rossum at Stichting
+Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
+as a successor of a language called ABC. Guido remains Python's
+principal author, although it includes many contributions from others.
+
+In 1995, Guido continued his work on Python at the Corporation for
+National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
+in Reston, Virginia where he released several versions of the
+software.
+
+In May 2000, Guido and the Python core development team moved to
+BeOpen.com to form the BeOpen PythonLabs team. In October of the same
+year, the PythonLabs team moved to Digital Creations (now Zope
+Corporation, see http://www.zope.com). In 2001, the Python Software
+Foundation (PSF, see http://www.python.org/psf/) was formed, a
+non-profit organization created specifically to own Python-related
+Intellectual Property. Zope Corporation is a sponsoring member of
+the PSF.
+
+All Python releases are Open Source (see http://www.opensource.org for
+the Open Source Definition). Historically, most, but not all, Python
+releases have also been GPL-compatible; the table below summarizes
+the various releases.
+
+ Release Derived Year Owner GPL-
+ from compatible? (1)
+
+ 0.9.0 thru 1.2 1991-1995 CWI yes
+ 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
+ 1.6 1.5.2 2000 CNRI no
+ 2.0 1.6 2000 BeOpen.com no
+ 1.6.1 1.6 2001 CNRI yes (2)
+ 2.1 2.0+1.6.1 2001 PSF no
+ 2.0.1 2.0+1.6.1 2001 PSF yes
+ 2.1.1 2.1+2.0.1 2001 PSF yes
+ 2.2 2.1.1 2001 PSF yes
+ 2.1.2 2.1.1 2002 PSF yes
+ 2.1.3 2.1.2 2002 PSF yes
+ 2.2.1 2.2 2002 PSF yes
+ 2.2.2 2.2.1 2002 PSF yes
+ 2.3 2.2.2 2002-2003 PSF yes
+
+Footnotes:
+
+(1) GPL-compatible doesn't mean that we're distributing Python under
+ the GPL. All Python licenses, unlike the GPL, let you distribute
+ a modified version without making your changes open source. The
+ GPL-compatible licenses make it possible to combine Python with
+ other software that is released under the GPL; the others don't.
+
+(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
+ because its license has a choice of law clause. According to
+ CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
+ is "not incompatible" with the GPL.
+
+Thanks to the many outside volunteers who have worked under Guido's
+direction to make these releases possible.
+
+
+B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
+===============================================================
+
+PSF LICENSE AGREEMENT FOR PYTHON 2.3
+------------------------------------
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation
+("PSF"), and the Individual or Organization ("Licensee") accessing and
+otherwise using Python 2.3 software 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 2.3
+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 Python Software Foundation; All Rights Reserved" are
+retained in Python 2.3 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 2.3 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 2.3.
+
+4. PSF is making Python 2.3 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 2.3 WILL NOT
+INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+2.3 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.3,
+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 2.3, 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.
+
+
+
+Zope Public License (ZPL) Version 2.1
+------------------------------------------------------------------------------
+
+A copyright notice accompanies this license document that
+identifies the copyright holders.
+
+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
+ accompanying copyright notice, this list of conditions,
+ and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the accompanying
+ copyright notice, this list of conditions, and the
+ following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Names of the copyright holders must not be used to
+ endorse or promote products derived from this software
+ without prior written permission from the copyright
+ holders.
+
+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 the copyright
+ holders. Use of them is covered by separate agreement
+ with the copyright holders.
+
+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 THE COPYRIGHT HOLDERS ``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 THE COPYRIGHT HOLDERS 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.
diff --git a/debian/patches/install-layout.diff b/debian/patches/install-layout.diff
new file mode 100644
index 0000000..9df840f
--- /dev/null
+++ b/debian/patches/install-layout.diff
@@ -0,0 +1,189 @@
+Index: b/setup.py
+===================================================================
+--- a/setup.py
++++ b/setup.py
+@@ -43,8 +43,13 @@ def _gen_console_scripts():
+ )
+ if any(os.environ.get(var) not in (None, "", "0") for var in var_names):
+ return
+- yield ("easy_install-{shortver} = setuptools.command.easy_install:main"
+- .format(shortver=sys.version[:3]))
++ if 'XPYVERS' in os.environ:
++ for version in os.environ['XPYVERS'].split():
++ yield ("easy_install-{shortver} = setuptools.command.easy_install:main"
++ .format(shortver=sys.version[:3]))
++ else:
++ yield ("easy_install-{shortver} = setuptools.command.easy_install:main"
++ .format(shortver=sys.version[:3]))
+
+ console_scripts = list(_gen_console_scripts())
+
+Index: b/setuptools/command/easy_install.py
+===================================================================
+--- a/setuptools/command/easy_install.py
++++ b/setuptools/command/easy_install.py
+@@ -130,13 +130,15 @@ class easy_install(Command):
+ ('local-snapshots-ok', 'l',
+ "allow building eggs from local checkouts"),
+ ('version', None, "print version information and exit"),
++ ('install-layout=', None, "installation layout to choose (known values: deb)"),
++ ('force-installation-into-system-dir', '0', "force installation into /usr"),
+ ('no-find-links', None,
+ "Don't load find-links defined in packages being installed")
+ ]
+ boolean_options = [
+ 'zip-ok', 'multi-version', 'exclude-scripts', 'upgrade', 'always-copy',
+ 'editable',
+- 'no-deps', 'local-snapshots-ok', 'version'
++ 'no-deps', 'local-snapshots-ok', 'version', 'force-installation-into-system-dir'
+ ]
+
+ if site.ENABLE_USER_SITE:
+@@ -187,6 +189,10 @@ class easy_install(Command):
+ self.site_dirs = None
+ self.installed_projects = {}
+ self.sitepy_installed = False
++ # enable custom installation, known values: deb
++ self.install_layout = None
++ self.force_installation_into_system_dir = None
++
+ # Always read easy_install options, even if we are subclassed, or have
+ # an independent instance created. This ensures that defaults will
+ # always come from the standard configuration file(s)' "easy_install"
+@@ -252,6 +258,10 @@ class easy_install(Command):
+ self.expand_basedirs()
+ self.expand_dirs()
+
++ if self.install_layout:
++ if not self.install_layout.lower() in ['deb']:
++ raise DistutilsOptionError("unknown value for --install-layout")
++
+ self._expand('install_dir', 'script_dir', 'build_directory',
+ 'site_dirs')
+ # If a non-default installation directory was specified, default the
+@@ -276,6 +286,15 @@ class easy_install(Command):
+ if self.user and self.install_purelib:
+ self.install_dir = self.install_purelib
+ self.script_dir = self.install_scripts
++
++ if self.prefix == '/usr' and not self.force_installation_into_system_dir:
++ raise DistutilsOptionError("""installation into /usr
++
++Trying to install into the system managed parts of the file system. Please
++consider to install to another location, or use the option
++--force-installation-into-system-dir to overwrite this warning.
++""")
++
+ # default --record from the install command
+ self.set_undefined_options('install', ('record', 'record'))
+ # Should this be moved to the if statement below? It's not used
+@@ -1248,11 +1267,28 @@ Please make the appropriate changes for
+ self.debug_print("os.makedirs('%s', 0o700)" % path)
+ os.makedirs(path, 0o700)
+
++ if sys.version[:3] in ('2.3', '2.4', '2.5') or 'real_prefix' in sys.__dict__:
++ sitedir_name = 'site-packages'
++ else:
++ sitedir_name = 'dist-packages'
++
+ INSTALL_SCHEMES = dict(
+ posix=dict(
+ install_dir='$base/lib/python$py_version_short/site-packages',
+ script_dir='$base/bin',
+ ),
++ unix_local = dict(
++ install_dir = '$base/local/lib/python$py_version_short/%s' % sitedir_name,
++ script_dir = '$base/local/bin',
++ ),
++ posix_local = dict(
++ install_dir = '$base/local/lib/python$py_version_short/%s' % sitedir_name,
++ script_dir = '$base/local/bin',
++ ),
++ deb_system = dict(
++ install_dir = '$base/lib/python3/%s' % sitedir_name,
++ script_dir = '$base/bin',
++ ),
+ )
+
+ DEFAULT_SCHEME = dict(
+@@ -1263,11 +1299,18 @@ Please make the appropriate changes for
+ def _expand(self, *attrs):
+ config_vars = self.get_finalized_command('install').config_vars
+
+- if self.prefix:
++ if self.prefix or self.install_layout:
++ if self.install_layout and self.install_layout.lower() in ['deb']:
++ scheme_name = "deb_system"
++ self.prefix = '/usr'
++ elif self.prefix or 'real_prefix' in sys.__dict__:
++ scheme_name = os.name
++ else:
++ scheme_name = "posix_local"
+ # Set default install_dir/scripts from --prefix
+ config_vars = config_vars.copy()
+ config_vars['base'] = self.prefix
+- scheme = self.INSTALL_SCHEMES.get(os.name, self.DEFAULT_SCHEME)
++ scheme = self.INSTALL_SCHEMES.get(scheme_name,self.DEFAULT_SCHEME)
+ for attr, val in scheme.items():
+ if getattr(self, attr, None) is None:
+ setattr(self, attr, val)
+@@ -1301,9 +1344,14 @@ def get_site_dirs():
+ "site-packages"),
+ os.path.join(prefix, "lib", "site-python")])
+ else:
++ if sys.version[:3] in ('2.3', '2.4', '2.5'):
++ sdir = "site-packages"
++ else:
++ sdir = "dist-packages"
+ sitedirs.extend(
+- [prefix, os.path.join(prefix, "lib", "site-packages")]
+- )
++ [os.path.join(prefix, "local/lib", "python" + sys.version[:3], sdir),
++ os.path.join(prefix, "lib", "python" + sys.version[:3], sdir)]
++ )
+ if sys.platform == 'darwin':
+ # for framework builds *only* we add the standard Apple
+ # locations. Currently only per-user, but /Library and
+Index: b/setuptools/command/install_egg_info.py
+===================================================================
+--- a/setuptools/command/install_egg_info.py
++++ b/setuptools/command/install_egg_info.py
+@@ -1,5 +1,5 @@
+ from distutils import log, dir_util
+-import os
++import os, sys
+
+ from setuptools import Command
+ from setuptools.archive_util import unpack_archive
+@@ -17,14 +17,31 @@ class install_egg_info(Command):
+
+ def initialize_options(self):
+ self.install_dir = None
++ self.install_layout = None
++ self.prefix_option = None
+
+ def finalize_options(self):
+ self.set_undefined_options('install_lib',
+ ('install_dir', 'install_dir'))
++ self.set_undefined_options('install',('install_layout','install_layout'))
++ if sys.hexversion > 0x2060000:
++ self.set_undefined_options('install',('prefix_option','prefix_option'))
+ ei_cmd = self.get_finalized_command("egg_info")
+ basename = pkg_resources.Distribution(
+ None, None, ei_cmd.egg_name, ei_cmd.egg_version
+ ).egg_name() + '.egg-info'
++
++ if self.install_layout:
++ if not self.install_layout.lower() in ['deb']:
++ raise DistutilsOptionError(
++ "unknown value for --install-layout")
++ basename = basename.replace('-py%s' % pkg_resources.PY_MAJOR, '')
++ elif self.prefix_option or 'real_prefix' in sys.__dict__:
++ # don't modify for virtualenv
++ pass
++ else:
++ basename = basename.replace('-py%s' % pkg_resources.PY_MAJOR, '')
++
+ self.source = ei_cmd.egg_info
+ self.target = os.path.join(self.install_dir, basename)
+ self.outputs = [self.target]
diff --git a/debian/patches/multiarch-extname.diff b/debian/patches/multiarch-extname.diff
new file mode 100644
index 0000000..53ce7b7
--- /dev/null
+++ b/debian/patches/multiarch-extname.diff
@@ -0,0 +1,81 @@
+Index: b/setuptools/command/easy_install.py
+===================================================================
+--- a/setuptools/command/easy_install.py
++++ b/setuptools/command/easy_install.py
+@@ -192,6 +192,7 @@ class easy_install(Command):
+ # enable custom installation, known values: deb
+ self.install_layout = None
+ self.force_installation_into_system_dir = None
++ self.multiarch = None
+
+ # Always read easy_install options, even if we are subclassed, or have
+ # an independent instance created. This ensures that defaults will
+@@ -261,6 +262,9 @@ class easy_install(Command):
+ if self.install_layout:
+ if not self.install_layout.lower() in ['deb']:
+ raise DistutilsOptionError("unknown value for --install-layout")
++ import sysconfig
++ if sys.version_info[:2] >= (3, 3):
++ self.multiarch = sysconfig.get_config_var('MULTIARCH')
+
+ self._expand('install_dir', 'script_dir', 'build_directory',
+ 'site_dirs')
+Index: b/setuptools/command/install_lib.py
+===================================================================
+--- a/setuptools/command/install_lib.py
++++ b/setuptools/command/install_lib.py
+@@ -1,10 +1,23 @@
+ import distutils.command.install_lib as orig
+ import os
++import sys
+
+
+ class install_lib(orig.install_lib):
+ """Don't add compiled flags to filenames of non-Python files"""
+
++ def initialize_options(self):
++ orig.install_lib.initialize_options(self)
++ self.multiarch = None
++ self.install_layout = None
++
++ def finalize_options(self):
++ orig.install_lib.finalize_options(self)
++ self.set_undefined_options('install',('install_layout','install_layout'))
++ if self.install_layout == 'deb' and sys.version_info[:2] >= (3, 3):
++ import sysconfig
++ self.multiarch = sysconfig.get_config_var('MULTIARCH')
++
+ def run(self):
+ self.build()
+ outfiles = self.install()
+@@ -35,6 +48,8 @@ class install_lib(orig.install_lib):
+ exclude = self.get_exclusions()
+
+ if not exclude:
++ import distutils.dir_util
++ distutils.dir_util._multiarch = self.multiarch
+ return orig.install_lib.copy_tree(self, infile, outfile)
+
+ # Exclude namespace package __init__.py* files from the output
+@@ -44,12 +59,21 @@ class install_lib(orig.install_lib):
+
+ outfiles = []
+
++ if self.multiarch:
++ import sysconfig
++ ext_suffix = sysconfig.get_config_var ('EXT_SUFFIX')
++ new_suffix = "%s-%s%s" % (ext_suffix[:-3], self.multiarch, ext_suffix[-3:])
++
+ def pf(src, dst):
+ if dst in exclude:
+ log.warn("Skipping installation of %s (namespace package)",
+ dst)
+ return False
+
++ if self.multiarch and dst.endswith(ext_suffix) and not dst.endswith(new_suffix):
++ dst = dst.replace(ext_suffix, new_suffix)
++ log.info("renaming extension to %s", os.path.basename(dst))
++
+ log.info("copying %s -> %s", src, os.path.dirname(dst))
+ outfiles.append(dst)
+ return dst
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3c7dc33
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+install-layout.diff
+multiarch-extname.diff
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..265e95c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,186 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# setuptools doesn't handle translated messages
+export LC_ALL=C
+
+#PYVERS := 2.3 2.5 $(shell pyversions -vr debian/control)
+XPYVERS := 2.7
+PYVERS := 2.7
+PYVERS3 := 3.4
+PYVER := $(shell python -c 'import sys; print sys.version[:3]')
+SETUPTOOLSVER=1.3.2
+export XPYVERS
+
+include /usr/share/python3/python.mk
+
+pname = $(if $(findstring 3.,$(2)),$(subst python-,python3-,$(1)),$(1))
+
+p_pkgr = python-pkg-resources
+p_setp = python-setuptools
+p_doc = python-setuptools-doc
+
+d_pkgr = debian/$(p_pkgr)
+d_setp = debian/$(p_setp)
+d_doc = debian/$(p_doc)
+
+build: build-stamp
+build-arch: build-stamp
+build-indep: build-stamp build-doc-stamp
+build-stamp: $(PYVERS:%=build-python%) $(PYVERS3:%=build-python%) build-doc-stamp
+ touch $@
+build-doc-stamp:
+ PYTHONPATH=$(CURDIR) \
+ sh -c 'cd docs && sphinx-build -b html -d build/doctrees . build/html'
+ touch $@
+build-python%: pre-build-stamp
+ python$* setup.py build
+ touch $@
+pre-build-stamp:
+ [ -d setuptools.egg-info.saved ] || cp -a setuptools.egg-info setuptools.egg-info.saved
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-python* build-doc-stamp build-stamp
+ rm -rf build dist
+ -find -name __pycache__ | xargs rm -rf
+ -find -name '*.py[co]' | xargs rm -f
+ rm -rf docs/build
+ rm -f template* \(dev\).py
+ if [ -d setuptools.egg-info.saved ]; then \
+ rm -rf setuptools.egg-info; \
+ mv setuptools.egg-info.saved setuptools.egg-info; \
+ fi
+ dh_clean
+
+install: build install-prereq $(PYVERS:%=install-python%) $(PYVERS3:%=install-python%) install-wheel
+ find debian -name 'setuptools_boot.py*' | xargs -r rm -f
+ find debian -name '*.py[co]' | xargs -r rm -f
+ pkgs=$$(dh_listpackages); cd debian && find $$pkgs -mindepth 1 -type d -empty -print -delete
+
+ rm -f debian/python-*/usr/bin/easy_install-3*
+ rm -f debian/python3-*/usr/bin/easy_install-2*
+ mv debian/python3-setuptools/usr/bin/easy_install \
+ debian/python3-setuptools/usr/bin/easy_install3
+
+ : # Replace all '#!' calls to python with $(PYTHON)
+ : # and make them executable
+ for i in \
+ `find debian/python-*/usr/lib debian/python-*/usr/bin -type f`; \
+ do \
+ case "$$i" in *-[0-9].[0-9]) continue; esac; \
+ sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \
+ $$i > $$i.temp; \
+ if cmp --quiet $$i $$i.temp; then \
+ rm -f $$i.temp; \
+ else \
+ mv -f $$i.temp $$i; \
+ chmod 755 $$i; \
+ echo "fixed interpreter: $$i"; \
+ fi; \
+ done
+
+ for i in \
+ `find debian/python3-*/usr/lib debian/python3-*/usr/bin -type f`; \
+ do \
+ case "$$i" in *-[0-9].[0-9]) continue; esac; \
+ sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python3\1,' \
+ $$i > $$i.temp; \
+ if cmp --quiet $$i $$i.temp; then \
+ rm -f $$i.temp; \
+ else \
+ mv -f $$i.temp $$i; \
+ chmod 755 $$i; \
+ echo "fixed interpreter: $$i"; \
+ fi; \
+ done
+
+install-prereq:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+install-python%:
+ dh_installdirs -A usr/bin /$(call py_libdir,$*)
+ python$* setup.py install \
+ --root=$(CURDIR)/$(call pname,$(d_setp),$*) --install-layout=deb
+
+ mv $(call pname,$(d_setp),$*)/$(call py_libdir,$*)/pkg_resources.py \
+ $(call pname,$(d_pkgr),$*)/$(call py_libdir,$*)/
+
+# mv $(call pname,$(d_setp),$*)/$(call py_libdir,$*)/setuptools-$(SETUPTOOLSVER).egg-info \
+# $(call pname,$(d_setp),$*)/$(call py_libdir,$*)/setuptools.egg-info
+
+ echo setuptools-$(SETUPTOOLSVER).egg-info \
+ > $(call pname,$(d_setp),$*)/$(call py_libdir,$*)/setuptools.pth
+
+install-wheel:
+ mkdir -p debian/python-setuptools-whl/usr/share/python-wheels
+ python3 setup.py bdist_wheel --universal \
+ -d debian/python-setuptools-whl/usr/share/python-wheels
+ dh_installdirs -ppython-setuptools-whl usr/share
+
+binary-arch:
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -p$(p_setp) CHANGES.txt
+ dh_installchangelogs -N$(p_setp)
+ dh_installdocs -N$(p_setp) -N$(p_pkgr)
+ dh_installdocs -p$(p_pkgr) docs/pkg_resources.txt
+ dh_installdocs -p$(p_setp) -Xpkg_resources docs/*.txt
+ mkdir -p $(d_doc)/usr/share/doc/$(p_doc)
+ cp -pr docs/build/html $(d_doc)/usr/share/doc/$(p_doc)/
+ dh_sphinxdoc -p$(p_doc)
+ dh_link -p$(p_doc) \
+ /usr/share/doc/$(p_doc)/html /usr/share/doc/$(p_setp)/html \
+ /usr/share/doc/$(p_doc)/html /usr/share/doc/$(p_setp3)/html
+
+ dh_compress -i
+ dh_fixperms -i
+
+ for v in $(filter-out 3.%, $(PYVERS)); do \
+ sed -i "s/python2\../python$$v/g" $(d_setp)/usr/bin/easy_install-$$v; \
+ done
+# for v in $(filter-out 2.%, $(PYVERS)); do \
+# sed -i "s/python3\../python$$v/g" debian/$(call pname,$(p_setp),3.1)/usr/bin/easy_install-$$v; \
+# done
+
+ dh_python2 -p$(p_pkgr) -p$(p_setp) #-p$(p_dist)
+ cat $(d_setp).substvars
+ ( \
+ echo 'python:Versions=2.7'; \
+ echo 'python:Provides=python2.7-setuptools'; \
+ echo 'python:Depends=python:any (>= 2.7), python:any (<< 2.8)'; \
+ ) > $(d_setp).substvars
+ cp $(d_setp).substvars $(d_pkgr).substvars
+
+ dh_python3 -p$(call pname,$(p_pkgr),3.3) -p$(call pname,$(p_setp),3.3) # -p$(call pname,$(p_dist),3.3)
+ cat debian/$(call pname,$(p_setp),3.2).substvars
+ cat debian/$(call pname,$(p_pkgr),3.2).substvars
+
+## cp $(d_setp).substvars $(d_dist).substvars
+
+ ( \
+ echo 'python3:Versions=3.3'; \
+ echo 'python3:Provides=python3.3-setuptools'; \
+ echo 'python3:Depends=python3:any (>= 3.3), python3:any (<< 3.5)'; \
+ ) > $(call pname,$(d_setp),3.3).substvars
+ cp $(call pname,$(d_setp),3.3).substvars $(call pname,$(d_pkgr),3.3).substvars
+
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d2ee382
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/d/distribute/distribute-([0-9.]*).tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/python-setuptools.git
More information about the Reproducible-commits
mailing list