File: ignore_local_dist-packages.patch

package info (click to toggle)
python-biom-format 2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,548 kB
  • ctags: 1,051
  • sloc: python: 6,257; makefile: 137; sh: 52
file content (28 lines) | stat: -rw-r--r-- 1,275 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.

--- biom-format-2.0.0.orig/scripts/biom
+++ biom-format-2.0.0/scripts/biom
@@ -19,4 +19,6 @@
 # __maintainer__ = "Greg Caporaso"
 # __email__ = "gregcaporaso@gmail.com"
 
+export PYTHONPATH=/usr/lib/python`python --version 2>&1 | grep -o '[1-9]\.[0-9]\+'`/dist-packages
+
 exec pyqi --driver-name biom --command-config-module biom.interfaces.optparse.config -- "$@"
--- biom-format-2.0.0.orig/biom/__init__.py
+++ biom-format-2.0.0/biom/__init__.py
@@ -8,6 +8,8 @@
 # The full license is in the file COPYING.txt, distributed with this software.
 # ----------------------------------------------------------------------------
 
+from __future__ import absolute_import
+
 __author__ = "Daniel McDonald"
 __copyright__ = "Copyright 2011-2013, The BIOM Format Development Team"
 __credits__ = ["Daniel McDonald", "Jai Ram Rideout", "Greg Caporaso",