[med-svn] [Git][med-team/python-pbcore][master] Get docs building
Nilesh Patra (@nilesh)
gitlab at salsa.debian.org
Thu Dec 23 15:39:56 GMT 2021
Nilesh Patra pushed to branch master at Debian Med / python-pbcore
Commits:
360edd89 by Nilesh Patra at 2021-12-23T21:09:29+05:30
Get docs building
- - - - -
3 changed files:
- + debian/patches/seek-curdir-for-xml.patch
- debian/patches/series
- debian/rules
Changes:
=====================================
debian/patches/seek-curdir-for-xml.patch
=====================================
@@ -0,0 +1,20 @@
+Description: Try looking for mapping.xml in the current directory
+ helps when package is not installed for generating docs etc
+Origin: Nilesh Patra <nilesh at debian.org>
+Last-Update: 2021-12-23
+--- a/pbcore/chemistry/chemistry.py
++++ b/pbcore/chemistry/chemistry.py
+@@ -34,8 +34,12 @@
+
+
+ def _loadBarcodeMappings():
+- mappingFname = resource_filename(Requirement.parse(
++ try:
++ mappingFname = resource_filename(Requirement.parse(
+ 'pbcore'), 'pbcore/chemistry/resources/mapping.xml')
++ except:
++ mappingFname = os.path.join(os.path.dirname(__file__),
++ 'resources/mapping.xml')
+ mappings = _loadBarcodeMappingsFromFile(mappingFname)
+ updMappingDir = os.getenv("SMRT_CHEMISTRY_BUNDLE_DIR")
+ if updMappingDir:
=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ doc-theme.patch
enable-build-time-testing.patch
exclude_test_missing_data.patch
b24746790c7105212e45dc2f40115d231bd8baae.patch
+seek-curdir-for-xml.patch
=====================================
debian/rules
=====================================
@@ -6,7 +6,6 @@ include /usr/share/dpkg/default.mk
export PYBUILD_NAME = pbcore
export PYBUILD_AFTER_INSTALL = \
chmod -x {destdir}/{install_dir}/pbcore/data/datasets/*.xml
-
DESTDIR = $(CURDIR)/debian/python3-$(PYBUILD_NAME)
export LC_ALL=C.UTF-8
%:
@@ -14,7 +13,7 @@ export LC_ALL=C.UTF-8
override_dh_auto_build:
dh_auto_build
- PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) $(MAKE) doc || true
+ PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) $(MAKE) doc
override_dh_install:
dh_install
View it on GitLab: https://salsa.debian.org/med-team/python-pbcore/-/commit/360edd89fea786865b2f88c8bd3d1c73943179d0
--
View it on GitLab: https://salsa.debian.org/med-team/python-pbcore/-/commit/360edd89fea786865b2f88c8bd3d1c73943179d0
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20211223/33090425/attachment-0001.htm>
More information about the debian-med-commit
mailing list