Personal tools
You are here: Home log python install biopython-1.41 with python2.2
Document Actions

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/

« November 2009 »
Su Mo Tu We Th Fr Sa
1234567
89101112 1314
1516171819 20 21
22232425262728
2930
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: