File: 0002-Do-not-run-PAUP-based-tests-unless-path-to-PAUP-is-p.patch

package info (click to toggle)
python-dendropy 4.2.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 68,392 kB
  • ctags: 3,947
  • sloc: python: 41,840; xml: 1,400; makefile: 15
file content (35 lines) | stat: -rw-r--r-- 1,252 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
From b6b932e5c0bd65384015c759ebf281e561e4da07 Mon Sep 17 00:00:00 2001
From: Jeet Sukumaran <jeetsukumaran@gmail.com>
Date: Tue, 23 Jun 2015 10:04:34 -0400
Subject: [PATCH] Do not run PAUP-based tests unless path to PAUP is provided

---
 README.rst                                     |  15 ++
 dendropy/interop/paup.py                       |   2 +-
 dendropy/test/test_datamodel_split_bitmasks.py | 221 +++++++++++++------------
 3 files changed, 129 insertions(+), 109 deletions(-)

--- a/README.rst
+++ b/README.rst
@@ -67,6 +67,21 @@ Testing
     If this variable is not set or set to "NONE", then any tests that rely on
     PAUP* will NOT be run.
 
+.. note::
+
+    Note that some tests rely on PAUP* being available on your system.
+    You will need to set the environmental variable ``DENDROPY_PAUP_EXECUTABLE_PATH`` to the path
+    of the PAUP* executable for these tests to be run, e.g.::
+
+        DENDROPY_PAUP_EXECUTABLE_PATH=/usr/local/bin/paup python setup.py test
+
+    or::
+
+        DENDROPY_PAUP_EXECUTABLE_PATH=/usr/local/bin/paup python -m unittest
+
+    If this variable is not set or set to "NONE", then any tests that rely on
+    PAUP* will NOT be run.
+
 Tests can be run by typing::
 
     $ python -m dendropy.test