[Python-modules-commits] [python-cryptography] 01/01: Restore cffi workaround that is still necessary.

Tristan Seligmann mithrandi at moszumanska.debian.org
Wed Jun 22 21:57:07 UTC 2016


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

mithrandi pushed a commit to branch jessie-backports
in repository python-cryptography.

commit 207be7292887b28253e0806bc8857293db6b4abd
Author: Tristan Seligmann <mithrandi at debian.org>
Date:   Wed Jun 22 22:17:35 2016 +0200

    Restore cffi workaround that is still necessary.
---
 debian/changelog |  6 ++++++
 debian/rules     | 17 +++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 12af851..badccce 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-cryptography (1.3.4-1~bpo8+2) jessie-backports; urgency=medium
+
+  * Restore cffi workaround that is still necessary.
+
+ -- Tristan Seligmann <mithrandi at debian.org>  Wed, 22 Jun 2016 23:22:02 +0200
+
 python-cryptography (1.3.4-1~bpo8+1) jessie-backports; urgency=medium
 
   * Rebuild for jessie-backports.
diff --git a/debian/rules b/debian/rules
index 3f0a517..7b80cf1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,3 +32,20 @@ override_dh_auto_build:
 	   https_proxy='127.0.0.1:9' \
 	   sphinx-build -N -b html docs/ $(CURDIR)/.pybuild/docs/html/
 endif
+
+
+override_dh_python2:
+	dh_python2
+	# Remove "cffi" from requires after dh_python has seen it (so that the
+	# pydist file takes effect), because it is not actually needed at
+	# runtime.
+	sed -i '/^cffi/d' \
+	    debian/python-cryptography/usr/lib/python*/dist-packages/cryptography*.egg-info/requires.txt
+
+
+override_dh_python3:
+	dh_python3
+	rm -rf debian/python3-cryptography/usr/lib/python3.?
+	# See comment in override_dh_python2
+	sed -i '/^cffi/d' \
+	    debian/python3-cryptography/usr/lib/python3/dist-packages/cryptography*.egg-info/requires.txt

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



More information about the Python-modules-commits mailing list