install biopython-1.41 with python2.2
biopython-1.41 needs python2.3 or above. hpc-cmb is using python2.2. Just two packages need that. How to work around it?
remove version 2.3 requirement -- modify setup.py 'if sys.version_info[:2] < (2, 3):' to be 'if sys.version_info[:2] < (2, 2):'
remove package dependency -- Two c source files from Bio.Nexus and Bio.Restriction.DNAUtils need python2.3 only stuff, i.e. PyMODINIT_FUNC. So just comment out related directives in setup.py:
yuhuang@hpc-cmb:~/lib/biopython/biopython-1.41$ diff setup.py setup.orig.py
355a356
> 'Bio.Nexus',
436a438,443
> Extension('Bio.Nexus.cnexus',
> ['Bio/Nexus/cnexus.c']
> ),
> Extension('Bio.Restriction.DNAUtils',
> ['Bio/Restriction/DNAUtils.c']
> ),
install -- python setup.py install --home=~/lib/biopython/
move directory -- mv ~/lib64/python/* ~/lib/biopython/