Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Piotr =?utf-8?Q?O=C5=BCarowski?= Newsgroups: linux.debian.maint.python Subject: Re: python-mkdocs new dependancy Date: Tue, 12 Apr 2016 10:50:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Apr 12 08:48:24 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.879 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 Mail-Followup-To: debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: Debian GNU/Linux (4.3.0-0.bpo.1-amd64) User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailing-List: archive/latest/13747 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20160412084805.GH2764@sar0.p1otr.com Approved: robomod@news.nic.it Lines: 46 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 12 Apr 2016 10:48:05 +0200 X-Original-Message-ID: <20160412084805.GH2764@sar0.p1otr.com> X-Original-References: <87fuuradnc.fsf@prune.linuxpenguins.xyz> Xref: csiph.com linux.debian.maint.python:8420 [Brian May, 2016-04-12] > When building python-mkdocs from git source I get this error: > > LANG=C.UTF-8 PYTHONPATH=. ./debian/scripts/mkdocs build > Traceback (most recent call last): > File "./debian/scripts/mkdocs", line 7, in > from mkdocs.__main__ import cli > File "/<>/mkdocs/__main__.py", line 77, in > theme_choices = utils.get_theme_names() I suggest to patch this one to search for themes in /usr/share/mkdocs/ (I just reported a bug asking to move files there) > File "/<>/mkdocs/utils/__init__.py", line 382, in get_theme_names > return get_themes().keys() > File "/<>/mkdocs/utils/__init__.py", line 374, in get_themes > for name, theme in themes.items()) > File "/<>/mkdocs/utils/__init__.py", line 374, in > for name, theme in themes.items()) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2201, in load > self.require(*args, **kwargs) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2218, in require > items = working_set.resolve(reqs, env, installer) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 830, in resolve > raise DistributionNotFound(req, requirers) > pkg_resources.DistributionNotFound: The 'mkdocs-bootswatch>=0.1.0' distribution was not found and is required by the application > debian/rules:12: recipe for target 'override_dh_auto_build' failed > > The python-mkdocs-bootswatch package is distributed as a python module > but doesn't contain python code. It appears to contain HTML and CSS > themes for mkdocs. > > What is the appropriate fix? Should I create a new mkdocs-bootswatch I moved all themes to /usr/share in python-pastescript and it works > package? Or should I try to somehow incooporate it into the > python-mkdocs package (not sure pybuild/git-dpm supports this?) dpkg-source supports this (multiple tarballs) and so does pybuild (multiple calls with different --dir) but I suggest to simply patch utils.get_theme_names and move .png/.js/... out of dist-packages -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645