Skip to content

Commit

Permalink
Updated setup.py for GenBank
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanb committed Jan 20, 2001
1 parent 1ceb3e4 commit 22df84e
Showing 1 changed file with 42 additions and 38 deletions.
80 changes: 42 additions & 38 deletions setup.py
@@ -1,5 +1,24 @@
# XXX message about how distutils is required. """Distutils based setup script for Biopython.
# how to run distutils to install the package
This uses Distutils (http://python.org/sigs/distutils-sig/) the standard
python mechanism for installing packages. For the easiest installation
just type the command:
python setup.py install
For more in-depth instructions, see the installation section of the
biopython manual, linked to from:
http://biopython.org/wiki/html/BioPython/BiopythonCode.html
Or for more details about the options available from distutils, look at
the 'Installing Python Modules' distutils documentation, available from:
http://python.org/sigs/distutils-sig/doc/
Or, if all else, fails, feel free to write to the biopython list
(biopython@biopython.org) and ask for help.
"""


import sys import sys
import os import os
Expand All @@ -14,41 +33,11 @@
# this is to support old distutils which do extensions differently # this is to support old distutils which do extensions differently
try: try:
from distutils.extension import Extension from distutils.extension import Extension
new_extension = 1
except ImportError: except ImportError:
print "Your version of distutils is really old. You should definately" print "Your version of distutils is really old. You need to upgrade"
print "upgrade to a newer version!" print "to a newer version. The latest releases of distutils are available"
new_extension = 0 print "from http://python.org/sigs/distutils-sig/download.html"

sys.exit(0)
if new_extension:
extensions = [Extension('Bio.Tools.Classification.cSVM',
['Bio/Tools/Classification/cSVMmodule.c']
),
Extension('Bio.Tools.clistfns',
['Bio/Tools/clistfnsmodule.c']
),
Extension('Bio.Tools.cmathfns',
['Bio/Tools/cmathfnsmodule.c']
),
Extension('Bio.Tools.cstringfns',
['Bio/Tools/cstringfnsmodule.c']
)
]
else:
extensions = [('Bio.Tools.Classification.cSVM',
{ 'sources' : ['Bio/Tools/Classification/cSVMmodule.c'] }
),
('Bio.Tools.clistfns',
{ 'sources' : ['Bio/Tools/clistfnsmodule.c'] }
),
('Bio.Tools.cmathfns',
{ 'sources' : ['Bio/Tools/cmathfnsmodule.c'] }
),
('Bio.Tools.cstringfns',
{ 'sources' : ['Bio/Tools/cstringfnsmodule.c'] }
)
]



setup(name='biopython', setup(name='biopython',
version='0.90d04', version='0.90d04',
Expand All @@ -66,6 +55,7 @@
'Bio.Entrez', 'Bio.Entrez',
'Bio.Enzyme', 'Bio.Enzyme',
'Bio.Fasta', 'Bio.Fasta',
'Bio.GenBank',
'Bio.Gobase', 'Bio.Gobase',
'Bio.Medline', 'Bio.Medline',
'Bio.PDB', 'Bio.PDB',
Expand All @@ -75,10 +65,24 @@
'Bio.SeqIO', 'Bio.SeqIO',
'Bio.SubsMat', 'Bio.SubsMat',
'Bio.SwissProt', 'Bio.SwissProt',
'Bio.Tools', 'Bio.Tools.Classification', 'Bio.Tools',
'Bio.Tools.Classification',
'Bio.Tools.Parsers',
'Bio.WWW' 'Bio.WWW'
], ],


ext_modules = extensions ext_modules = [Extension('Bio.Tools.Classification.cSVM',
['Bio/Tools/Classification/cSVMmodule.c']
),
Extension('Bio.Tools.clistfns',
['Bio/Tools/clistfnsmodule.c']
),
Extension('Bio.Tools.cmathfns',
['Bio/Tools/cmathfnsmodule.c']
),
Extension('Bio.Tools.cstringfns',
['Bio/Tools/cstringfnsmodule.c']
)
]
) )


0 comments on commit 22df84e

Please sign in to comment.