[Biopython-dev] Test python 2.6

Peter biopython at maubp.freeserve.co.uk
Tue Oct 26 16:59:44 UTC 2010


On Tue, Oct 26, 2010 at 5:45 PM, Dragoslav Zaric
<zaricdragoslav at gmail.com> wrote:
> I run now 2to3 on biopython folder and when it finish I will run run_tests.py
> This will also test C modules ?

Using run_tests.py would cover everything unless it has been disabled
on Python 3, or depends on some C code which hasn't been compiled
(in which case the test should be skipped).

Note we've edited setup.py not to try and compile any C code on Python 3
(because currently none of it works). You'll need to edit setup.py to
compile any C code you work on for Python 3.

For C modules which don't use NumPy, change this bit:

...
elif sys.version_info[0] == 3:
    # TODO - Must update our C extensions for Python 3
    EXTENSIONS = []
...

For extensions using NumPy, see class build_ext_biopython

Peter



More information about the Biopython-dev mailing list