[Biopython-dev] Python 2.3.2 breaks setup.py test

Michael Hoffman hoffman at ebi.ac.uk
Fri Oct 3 12:02:44 EDT 2003


In Python 2.3.2, the current directory '' is not included in the path.  
Instead the current directory at the time of Python startup is included in
the path. This breaks setup.py test which relies on the first behavior to 
import the tests.

OK to check in this patch?

Index: setup.py
===================================================================
RCS file: /home/repository/biopython/biopython/setup.py,v
retrieving revision 1.67
diff -u -r1.67 setup.py
--- setup.py    16 Sep 2003 16:59:30 -0000      1.67
+++ setup.py    3 Oct 2003 15:57:12 -0000
@@ -174,6 +174,7 @@
 
         # change to the test dir and run the tests
         os.chdir("Tests")
+        sys.path.insert(0, '')
         import run_tests
         run_tests.main([])
--
Michael Hoffman <hoffman at ebi.ac.uk>
European Bioinformatics Institute




More information about the Biopython-dev mailing list