[Python-modules-commits] [python-packaging] 05/06: Add the -whl package.

Barry Warsaw barry at moszumanska.debian.org
Mon Jul 13 21:25:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

barry pushed a commit to branch master
in repository python-packaging.

commit 4c19edf3c5e919926fd478e1160dccc06327e04d
Author: Barry Warsaw <barry at python.org>
Date:   Mon Jul 13 16:38:25 2015 -0400

    Add the -whl package.
---
 debian/control                      | 11 +++++++++++
 debian/python-packaging-whl.install |  1 +
 debian/rules                        |  6 ++++++
 3 files changed, 18 insertions(+)

diff --git a/debian/control b/debian/control
index 0ba0dd0..a6d4446 100644
--- a/debian/control
+++ b/debian/control
@@ -3,12 +3,16 @@ Section: python
 Priority: extra
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Barry Warsaw <barry at debian.org>,
+           ,
 Build-Depends: debhelper (>= 9),
                python-all (>= 2.6.6-3~),
                python-pytest,
+               python-setuptools,
                python-sphinx,
                python3-all,
                python3-pytest,
+               python3-setuptools,
+	       python3-wheel,
 Standards-Version: 3.9.6
 X-Python-Version: >= 2.7
 X-Python3-Version: >= 3.4
@@ -34,3 +38,10 @@ Provides: ${python3:Provides},
 Description: core utilities for Python packages
  .
  This package provides the Python 3 library.
+
+Package: python-packaging-whl
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: core utilities for Python packages
+ .
+ This package provides packaging in PEP 427 wheel format.
diff --git a/debian/python-packaging-whl.install b/debian/python-packaging-whl.install
new file mode 100644
index 0000000..fd3f06f
--- /dev/null
+++ b/debian/python-packaging-whl.install
@@ -0,0 +1 @@
+usr/share/python-wheels
diff --git a/debian/rules b/debian/rules
index 590f1a1..f23f90f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,3 +8,9 @@ export PYBUILD_PYTEST=1
 
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_install:
+	dh_auto_install
+	python3 setup.py bdist_wheel \
+		--universal \
+		-d $(CURDIR)/debian/tmp/usr/share/python-wheels

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-packaging.git



More information about the Python-modules-commits mailing list