File: ignore_local_dist-packages.patch

package info (click to toggle)
python-biom-format 2.1.7%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 51,820 kB
  • sloc: python: 12,757; makefile: 155; sh: 79
file content (19 lines) | stat: -rw-r--r-- 854 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: Fri, 28 Feb 2014 16:25:41 +0000
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.

--- a/biom/__init__.py
+++ b/biom/__init__.py
@@ -52,6 +52,8 @@ from .table import Table
 from .parse import parse_biom_table as parse_table, load_table
 from .util import __format_version__, __version__
 
+from __future__ import absolute_import
+
 __author__ = "Daniel McDonald"
 __copyright__ = "Copyright 2011-2017, The BIOM Format Development Team"
 __credits__ = ["Daniel McDonald", "Jai Ram Rideout", "Greg Caporaso",