openbsd-ports/biology/py-biopython/patches/patch-Tests_run_tests_py

18 lines
663 B
Plaintext

Index: Tests/run_tests.py
--- Tests/run_tests.py.orig
+++ Tests/run_tests.py
@@ -150,13 +150,10 @@ def main(argv):
# A. Because Martel may not be in ../build/lib.*
test_path = sys.path[0] or "."
source_path = os.path.abspath("%s/.." % test_path)
- sys.path.insert(1, source_path)
build_path = os.path.abspath(
"%s/../build/lib.%s-%s"
% (test_path, distutils.util.get_platform(), sys.version[:3])
)
- if os.access(build_path, os.F_OK):
- sys.path.insert(1, build_path)
# Using "export LANG=C" (which should work on Linux and similar) can
# avoid problems detecting optional command line tools on