[Python-modules-commits] [matplotlib] 02/02: make sure to maintain the baseline_images dir in tests/ by using a dummy file (else dh_python* will remove an empty dir); Closes: #838301

Sandro Tosi morph at moszumanska.debian.org
Sat Jan 7 02:12:50 UTC 2017


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

morph pushed a commit to branch master
in repository matplotlib.

commit aa2db9431715de1a78db656ab79db1d784a4c29a
Author: Sandro Tosi <morph at debian.org>
Date:   Fri Jan 6 21:12:42 2017 -0500

    make sure to maintain the baseline_images dir in tests/ by using a dummy file (else dh_python* will remove an empty dir); Closes: #838301
---
 debian/changelog | 4 +++-
 debian/rules     | 6 ++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7a7fd27..d947f48 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,8 +4,10 @@ matplotlib (2.0.0~rc2-2) UNRELEASED; urgency=medium
     - use bakoma fonts shipped with mpl: the fonts from fonts-lyx have been
       changed and some math symbols are not rendered correctly using them:
       Closes: #843656, #831020
+    - make sure to maintain the baseline_images dir in tests/ by using a dummy
+      file (else dh_python* will remove an empty dir); Closes: #838301
 
- -- Sandro Tosi <morph at debian.org>  Fri, 06 Jan 2017 18:37:03 -0500
+ -- Sandro Tosi <morph at debian.org>  Fri, 06 Jan 2017 21:11:22 -0500
 
 matplotlib (2.0.0~rc2-1) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index af5e406..b0c7486 100755
--- a/debian/rules
+++ b/debian/rules
@@ -128,6 +128,9 @@ install-%-stamp: build-%-stamp
 	# don't install baseline_images, needed for tests only, but huge
 	# leave the dir tho, as matplotlib/tests/__init__.py checks for it
 	rm -rf $(CURDIR)/debian/$(p)/usr/lib/python$*/*-packages/matplotlib/tests/baseline_images/*
+	for d in $(CURDIR)/debian/$(p)/usr/lib/python$*/*-packages/matplotlib/tests/baseline_images/; do \
+	    touch $$d/.keep; \
+	done
 
 	rm -rf $(CURDIR)/debian/$(p)/usr/lib/python$*/site-packages/matplotlib/mpl-data/
 	rm -rf $(CURDIR)/debian/$(p)/usr/lib/python$*/site-packages/matplotlib/backends/Matplotlib.nib/
@@ -169,6 +172,9 @@ install-py3-%-stamp: build-%-stamp
 	# don't install baseline_images, needed for tests only, but huge
 	# leave the dir tho, as matplotlib/tests/__init__.py checks for it
 	rm -rf $(CURDIR)/debian/$(p3)/usr/lib/python3/*-packages/matplotlib/tests/baseline_images/*
+	for d in $(CURDIR)/debian/$(p3)/usr/lib/python3/*-packages/matplotlib/tests/baseline_images/; do \
+	    touch $$d/.keep; \
+	done
 
 	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/

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



More information about the Python-modules-commits mailing list