[Python-modules-commits] [djangorestframework] 12/12: Jessie mkdocs kludge
Brian May
bam at moszumanska.debian.org
Fri Jul 15 10:42:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
bam pushed a commit to branch master
in repository djangorestframework.
commit c25282a3df402872f891e66215fde2b8d42f7ec9
Author: Brian May <bam at debian.org>
Date: Fri Jul 15 20:10:50 2016 +1000
Jessie mkdocs kludge
Without this change, on Jessie we get the following error:
Traceback (most recent call last):
File "/usr/bin/mkdocs", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
3138, in <module>
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
3124, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
3151, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
661, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
962, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
849, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'mkdocs-bootswatch>=0.1.0'
distribution was not found and is required by mkdocs
This doesn't seem to happen on Stretch or Sid.
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 38eb8b1..3cb0feb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,7 @@ override_dh_auto_build:
# Build the HTML documentation.
mkdir $(CURDIR)/docs.debian
- LC_ALL=C.UTF-8 mkdocs build && mv site docs.debian/html
+ LC_ALL=C.UTF-8 PYTHONPATH=/usr/share/mkdocs/themes mkdocs build && mv site docs.debian/html
override_dh_python3:
dh_python3
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/djangorestframework.git
More information about the Python-modules-commits
mailing list