[Python-modules-commits] [python-docutils] 02/02: Make sure that data paths in generated man pages are correct.
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Tue Sep 19 11:27:46 UTC 2017
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch debian/master
in repository python-docutils.
commit de469a57e7b038c63890cca6afe26ef3679e17e9
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date: Tue Sep 19 14:26:55 2017 +0300
Make sure that data paths in generated man pages are correct.
By exporting PYTHONPATH to location which has ‘_debian_package = 1’ set.
---
debian/changelog | 1 +
debian/rules | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index ce7bac0..733793b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ python-docutils (0.14+dfsg-1) UNRELEASED; urgency=medium
* Drop get_column_widths-compatibility.diff, applied upstream.
* Refresh and rebase other patches.
* Stop symlinking rst2html4 → rst2html, use upstream script instead.
+ * Make sure that data paths in generated man pages are correct.
-- Dmitry Shachnev <mitya57 at debian.org> Tue, 19 Sep 2017 00:17:27 +0300
diff --git a/debian/rules b/debian/rules
index 54a83ad..198a3bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -108,7 +108,7 @@ install: build
: # tools, because their executable name goes into the --help output)
mkdir -p debian/tmp/man/
set -ex && for exe in $(filter-out rst2odt_prepstyles,$(scripts)); do \
- export PYTHONPATH=.; \
+ export PYTHONPATH=debian/tmp/usr/lib/python2.7/dist-packages; \
cp debian/$$exe.txt debian/tmp/man/$$exe.txt; \
python debian/tmp/usr/share/docutils/scripts/python2/$$exe --help | \
sed \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-docutils.git
More information about the Python-modules-commits
mailing list