[Python-modules-commits] r25854 - in packages/python-gmpy/trunk/debian (changelog control rules)

aomighty-guest at users.alioth.debian.org aomighty-guest at users.alioth.debian.org
Thu Sep 12 22:17:24 UTC 2013


    Date: Thursday, September 12, 2013 @ 22:17:21
  Author: aomighty-guest
Revision: 25854

Updated to support Python 3

Modified:
  packages/python-gmpy/trunk/debian/changelog
  packages/python-gmpy/trunk/debian/control
  packages/python-gmpy/trunk/debian/rules

Modified: packages/python-gmpy/trunk/debian/changelog
===================================================================
--- packages/python-gmpy/trunk/debian/changelog	2013-09-12 22:10:45 UTC (rev 25853)
+++ packages/python-gmpy/trunk/debian/changelog	2013-09-12 22:17:21 UTC (rev 25854)
@@ -6,6 +6,7 @@
   * The manpage that comes with gmpy2 is now installed on the system
   * Renamed package to python-gmpy2 and provided dummy python-gmpy package to
     migrate to python-gmpy2.
+  * Now providing a python3-gmpy2 package, which works with Python 3
 
  -- Martin Kelly <martin at martingkelly.com>  Thu, 05 Sep 2013 19:17:26 -0700
 

Modified: packages/python-gmpy/trunk/debian/control
===================================================================
--- packages/python-gmpy/trunk/debian/control	2013-09-12 22:10:45 UTC (rev 25853)
+++ packages/python-gmpy/trunk/debian/control	2013-09-12 22:17:21 UTC (rev 25854)
@@ -2,24 +2,35 @@
 Section: python
 Priority: optional
 Maintainer: Martin Kelly <martin at martingkelly.com>
-Build-Depends: debhelper (>= 9), python-all-dev (>= 2.6.5), libmpfr-dev (>= 3.1.0), libmpc-dev (>= 1.0.0), python-sphinx
+Build-Depends: debhelper (>= 9), python-all-dev (>= 2.6.5), python3-dev (>= 3.3.2), libmpfr-dev (>= 3.1.0), libmpc-dev (>= 1.0.0), python-sphinx
 Standards-Version: 3.9.4.0
 Homepage: http://code.google.com/p/gmpy/
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-gmpy/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-gmpy/trunk/
 X-Python-Version: >= 2.3
+X-Python3-Version: >= 3.3
 
 Package: python-gmpy2
 Architecture: any
 Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Provides: ${python:Provides}
-Description: interfaces GMP to Python for fast, unbound-precision computations
+Description: interfaces GMP to Python 2 for fast, unbound-precision computations
  gmpy is a C-coded Python extension module that wraps the GMP library to
  provide to Python code fast multiprecision arithmetic (integer, rational, and
  float), random number generation, advanced number-theoretical functions, and
  more.
 
+Package: python3-gmpy2
+Architecture: any
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
+Description: interfaces GMP to Python 3 for fast, unbound-precision computations
+ gmpy is a C-coded Python extension module that wraps the GMP library to
+ provide to Python code fast multiprecision arithmetic (integer, rational, and
+ float), random number generation, advanced number-theoretical functions, and
+ more.
+
 Package: python-gmpy
 Architecture: any
 Depends: python-gmpy2, ${misc:Depends}

Modified: packages/python-gmpy/trunk/debian/rules
===================================================================
--- packages/python-gmpy/trunk/debian/rules	2013-09-12 22:10:45 UTC (rev 25853)
+++ packages/python-gmpy/trunk/debian/rules	2013-09-12 22:17:21 UTC (rev 25854)
@@ -1,11 +1,11 @@
 #!/usr/bin/make -f
 
-PYVERS=$(shell pyversions -vr)
+PY2VERS=$(shell pyversions -vr)
+PY3VERS=$(shell py3versions -vr)
+PYVERS=$(PY2VERS) $(PY3VERS)
 DPKG_EXPORT_BUILDFLAGS=1
 include /usr/share/dpkg/buildflags.mk
 
-PYVERS=$(shell pyversions -vr)
-
 clean:
 	dh_testdir
 	dh_testroot
@@ -33,7 +33,12 @@
 install: build $(PYVERS:%=install-python%)
 
 install-python%:
-	python$* setup.py install --install-layout=deb --root $(CURDIR)/debian/python-gmpy2/
+	if echo "$*" | grep -q 3\..* ; then \
+		python$* setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-gmpy2/; \
+	else \
+		python$* setup.py install --install-layout=deb --root $(CURDIR)/debian/python-gmpy2/; \
+	fi
+	
 	chmod -x $(CURDIR)/test/*.py
 
 binary-indep: build install
@@ -45,7 +50,7 @@
 	dh_installdocs
 	dh_installman
 	dh_installexamples
-	dh_python2
+	dh_python3
 	dh_strip
 	dh_compress
 	dh_fixperms




More information about the Python-modules-commits mailing list