[Python-modules-commits] r22809 - in packages/matplotlib/trunk/debian (changelog control rules)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Mon Oct 22 16:52:33 UTC 2012


    Date: Monday, October 22, 2012 @ 16:52:31
  Author: morph
Revision: 22809

* debian/{control, rules}
  - provide Python 3 packages, based on the work of Thomas Kluyver (thanks!);
    thanks to Yaroslav Halchenko for the report; Closes: #669272

Modified:
  packages/matplotlib/trunk/debian/changelog
  packages/matplotlib/trunk/debian/control
  packages/matplotlib/trunk/debian/rules

Modified: packages/matplotlib/trunk/debian/changelog
===================================================================
--- packages/matplotlib/trunk/debian/changelog	2012-10-22 12:22:05 UTC (rev 22808)
+++ packages/matplotlib/trunk/debian/changelog	2012-10-22 16:52:31 UTC (rev 22809)
@@ -1,3 +1,11 @@
+matplotlib (1.2.0~rc2-2) UNRELEASED; urgency=low
+
+  * debian/{control, rules}
+    - provide Python 3 packages, based on the work of Thomas Kluyver (thanks!);
+      thanks to Yaroslav Halchenko for the report; Closes: #669272
+
+ -- Sandro Tosi <morph at debian.org>  Mon, 22 Oct 2012 18:51:11 +0200
+
 matplotlib (1.2.0~rc2-1) experimental; urgency=low
 
   * New upstream release candidate

Modified: packages/matplotlib/trunk/debian/control
===================================================================
--- packages/matplotlib/trunk/debian/control	2012-10-22 12:22:05 UTC (rev 22808)
+++ packages/matplotlib/trunk/debian/control	2012-10-22 16:52:31 UTC (rev 22809)
@@ -13,15 +13,22 @@
                libpng-dev,
                python-all-dbg (>= 2.4.4-6),
                python-all-dev (>= 2.3.5-7),
+               python3-all-dbg,
+               python3-all-dev,
                python-dateutil,
                python-gtk2-dev,
                python-imaging,
                python-nose,
                python-numpy (>= 1:1.5.1-4),
                python-numpy-dbg (>= 1:1.5.1-4),
+               python3-numpy,
+               python3-numpy-dbg,
                python-pkg-resources,
+               python3-pkg-resources,
                python-qt4,
+               python3-pyqt4,
                python-setuptools,
+               python3-setuptools,
                python-sphinx (>= 1.0.7+dfsg),
                python-support (>= 1.0.0),
                python-tk (>= 2.5.2-1.1),
@@ -37,6 +44,7 @@
                xvfb,
                zlib1g-dev
 XS-Python-Version: all
+X-Python3-Version: >= 3.2
 Standards-Version: 3.9.3
 Homepage: http://matplotlib.org/
 Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/matplotlib/trunk/
@@ -75,6 +83,36 @@
  be accessed either via a functional interface familiar to Matlab
  users or an object oriented interface familiar to Python users.
 
+Package: python3-matplotlib
+Architecture: any
+Depends: python3-cairo,
+         python3-dateutil,
+         python3-gobject,
+         python-matplotlib-data (>= ${source:Version}),
+         python3-pyparsing,
+         python3-tz,
+         ${misc:Depends},
+         ${python3:Depends},
+         ${shlibs:Depends}
+Recommends: python3-tk
+Enhances: ipython3
+Suggests: dvipng,
+          ipython3,
+          librsvg2-common,
+          python-matplotlib-doc,
+          python3-pyqt4,
+          python3-scipy,
+          texlive-extra-utils,
+          texlive-latex-extra
+Description: Python based plotting system in a style similar to Matlab (Python 3)
+ Matplotlib is a pure Python plotting library designed to bring
+ publication quality plotting to Python with a syntax familiar to
+ Matlab users. All of the plotting commands in the pylab interface can
+ be accessed either via a functional interface familiar to Matlab
+ users or an object oriented interface familiar to Python users.
+ .
+ This package contains the Python 3 version of matplotlib.
+
 Package: python-matplotlib-data
 Architecture: all
 Depends: fonts-lyx, ${misc:Depends}
@@ -116,3 +154,20 @@
  users or an object oriented interface familiar to Python users.
  .
  This package contains the debug extension for python-matplotlib.
+
+Package: python3-matplotlib-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: python3-all-dbg,
+         python3-matplotlib (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: Python based plotting system (debug extension, Python 3)
+ Matplotlib is a pure Python plotting library designed to bring
+ publication quality plotting to Python with a syntax familiar to
+ Matlab users. All of the plotting commands in the pylab interface can
+ be accessed either via a functional interface familiar to Matlab
+ users or an object oriented interface familiar to Python users.
+ .
+ This package contains the debug extension for python3-matplotlib.

Modified: packages/matplotlib/trunk/debian/rules
===================================================================
--- packages/matplotlib/trunk/debian/rules	2012-10-22 12:22:05 UTC (rev 22808)
+++ packages/matplotlib/trunk/debian/rules	2012-10-22 16:52:31 UTC (rev 22809)
@@ -1,12 +1,15 @@
 #!/usr/bin/make -f
 
-PYVERS := $(shell pyversions -v -r debian/control)
+PY2VERS := $(shell pyversions -v -r debian/control)
+PY3VERS := $(shell py3versions -v -r debian/control)
 DEFPY := $(shell pyversions -v -d)
 PY_PLATFORM := $(shell python -c 'from distutils.util import get_platform; print get_platform()')
 pd := python-matplotlib-doc
 p := python-matplotlib
+p3 := python3-matplotlib
 pdata := python-matplotlib-data
 pdbg := python-matplotlib-dbg
+p3dbg := python3-matplotlib-dbg
 
 # build
 build: build-arch build-indep
@@ -25,7 +28,7 @@
 
 	touch $@
 
-build-arch: $(PYVERS:%=build-%-stamp)
+build-arch: $(PY2VERS:%=build-%-stamp) $(PY3VERS:%=build-%-stamp)
 
 build-%-stamp:
 	dh_testdir
@@ -64,7 +67,7 @@
 	dh_testdir
 	dh_testroot
 	
-	for i in $(PYVERS); do \
+	for i in $(PY2VERS) $(PY3VERS); do \
 		python$(i) ./setup.py clean --all; \
 		python$(i)-dbg ./setup.py clean --all; \
 	done
@@ -93,10 +96,11 @@
 	sed -i '/^examples\./d' $(CURDIR)/doc/matplotlibrc
 
 # install
-install-arch: build-arch $(PYVERS:%=install-%-stamp)
+install-arch: build-arch $(PY2VERS:%=install-%-stamp) $(PY3VERS:%=install-py3-%-stamp)
 	dh_testdir
 	dh_testroot
 	dh_numpy
+	dh_numpy3
 
 install-%-stamp: build-%-stamp
 	dh_testdir
@@ -123,6 +127,31 @@
 
 	touch $@
 
+install-py3-%-stamp: build-%-stamp
+	dh_testdir
+	dh_testroot
+
+	python$* ./setup.py install_lib \
+		-d $(CURDIR)/debian/$(p3)/usr/lib/python3/dist-packages/ --no-compile
+	python$* ./setup.py install_egg_info \
+		-d $(CURDIR)/debian/$(p3)/usr/lib/python3/dist-packages/
+	python$*-dbg ./setup.py install_lib \
+		-d $(CURDIR)/debian/$(p3dbg)/usr/lib/python3/dist-packages/ --no-compile
+
+	find debian/$(p3dbg) ! -type d ! -name '*.so' | xargs rm -f
+	find debian/$(p3dbg) -depth -empty -exec rmdir {} \;
+
+	# don't install baseline_images, needed for tests only, but huge
+	rm -rf $(CURDIR)/debian/$(p3)/usr/lib/python3/*-packages/matplotlib/tests/baseline_images/
+
+	rm -rf $(CURDIR)/debian/$(p3)/usr/lib/python3/dist-packages/matplotlib/mpl-data/
+	rm -rf $(CURDIR)/debian/$(p3)/usr/lib/python3/dist-packages/matplotlib/backends/Matplotlib.nib/
+
+	rm -rf $(CURDIR)/debian/$(p3dbg)/usr/lib/python3/dist-packages/matplotlib/mpl-data/
+	rm -rf $(CURDIR)/debian/$(p3dbg)/usr/lib/python3/dist-packages/matplotlib/backends/Matplotlib.nib/
+
+	touch $@
+
 install-indep: build-indep
 	dh_testdir -i
 	dh_testroot -i
@@ -171,9 +200,11 @@
 		fi; \
 	done
 	dh_pysupport -a
+	dh_python3 -a
 	dh_link -a
 	dh_lintian -a
-	dh_strip -a --dbg-package=$(pdbg)
+	dh_strip -a -p$(p) --dbg-package=$(pdbg)
+	dh_strip -a -p$(p3) --dbg-package=$(p3dbg)
 	# fix python-debug-in-wrong-location lintian warning
 	cd debian/*-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
 	dh_compress -a




More information about the Python-modules-commits mailing list