File: ignore_local_dist-packages.patch

package info (click to toggle)
python-biom-format 2.1.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,044 kB
  • sloc: python: 13,624; makefile: 149; sh: 105; javascript: 45
file content (19 lines) | stat: -rw-r--r-- 818 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Tim Booth <tbooth@ceh.ac.uk>
Last-Update: 2014-02-28
Description:  This patch allows biom to work even if there is an older
 installation of the biom libs in /usr/local/...
 Not sure if this is the neatest fix, but absolute_imports doesn't seem to be
 the full answer here as we have one module hooking in another, and probably
 looking for the default installed version is normally what you'd want.

--- python-biom-format.orig/biom/__init__.py
+++ python-biom-format/biom/__init__.py
@@ -53,6 +53,8 @@
 from .util import __format_version__, __version__
 from ._subsample import subsample
 
+from __future__ import absolute_import
+
 __author__ = "Daniel McDonald"
 __copyright__ = "Copyright 2011-2020, The BIOM Format Development Team"
 __credits__ = ["Daniel McDonald", "Jai Ram Rideout", "Greg Caporaso",