Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 85 lines (76 sloc) 2.791 kb
f726249 merged Andrew's Seq package with the tree
jchang authored
1 # XXX message about how distutils is required.
2 # how to run distutils to install the package
3
4 import sys
96a6095 Upgrade setup.py for SubsMat
chapmanb authored
5 import os
f726249 merged Andrew's Seq package with the tree
jchang authored
6 try:
7 from distutils.core import setup
8 except ImportError:
96a6095 Upgrade setup.py for SubsMat
chapmanb authored
9 print "Biopython installation requires distutils, avaiable with python 2.0"
10 print "or from http://python.org/sigs/distutils-sig/download.html"
f726249 merged Andrew's Seq package with the tree
jchang authored
11 sys.exit(0)
12
8535499 Support new and old style formats for the extensions
chapmanb authored
13 # check if the distutils has the new extension class stuff
14 # this is to support old distutils which do extensions differently
15 try:
16 from distutils.extension import Extension
17 new_extension = 1
18 except ImportError:
96a6095 Upgrade setup.py for SubsMat
chapmanb authored
19 print "Your version of distutils is really old. You should definately"
20 print "upgrade to a newer version!"
8535499 Support new and old style formats for the extensions
chapmanb authored
21 new_extension = 0
22
23 if new_extension:
24 extensions = [Extension('Bio.Tools.Classification.cSVM',
25 ['Bio/Tools/Classification/cSVMmodule.c']
26 ),
27 Extension('Bio.Tools.clistfns',
28 ['Bio/Tools/clistfnsmodule.c']
29 ),
30 Extension('Bio.Tools.cmathfns',
31 ['Bio/Tools/cmathfnsmodule.c']
32 ),
33 Extension('Bio.Tools.cstringfns',
34 ['Bio/Tools/cstringfnsmodule.c']
35 )
36 ]
37 else:
38 extensions = [('Bio.Tools.Classification.cSVM',
39 { 'sources' : ['Bio/Tools/Classification/cSVMmodule.c'] }
40 ),
41 ('Bio.Tools.clistfns',
42 { 'sources' : ['Bio/Tools/clistfnsmodule.c'] }
43 ),
44 ('Bio.Tools.cmathfns',
45 { 'sources' : ['Bio/Tools/cmathfnsmodule.c'] }
46 ),
47 ('Bio.Tools.cstringfns',
48 { 'sources' : ['Bio/Tools/cstringfnsmodule.c'] }
49 )
50 ]
51
52
f726249 merged Andrew's Seq package with the tree
jchang authored
53 setup(name='biopython',
96a6095 Upgrade setup.py for SubsMat
chapmanb authored
54 version='0.90d03',
f726249 merged Andrew's Seq package with the tree
jchang authored
55 author='The Biopython Consortium',
56 author_email='biopython@biopython.org',
57 url='http://www.bipoython.org/',
58
59 packages=['Bio',
96a6095 Upgrade setup.py for SubsMat
chapmanb authored
60 'Bio.Align',
61 'Bio.Alphabet',
62 'Bio.Blast',
63 'Bio.Clustalw',
64 'Bio.Data',
65 'Bio.Encodings',
66 'Bio.Entrez',
67 'Bio.Enzyme',
68 'Bio.Fasta',
69 'Bio.Gobase',
70 'Bio.Medline',
71 'Bio.PDB',
72 'Bio.Prosite',
73 'Bio.Rebase',
74 'Bio.SCOP',
75 'Bio.SeqIO',
76 'Bio.SubsMat',
77 'Bio.SwissProt',
78 'Bio.Tools', 'Bio.Tools.Classification',
79 'Bio.WWW'
f726249 merged Andrew's Seq package with the tree
jchang authored
80 ],
96a6095 Upgrade setup.py for SubsMat
chapmanb authored
81
8535499 Support new and old style formats for the extensions
chapmanb authored
82 ext_modules = extensions
f726249 merged Andrew's Seq package with the tree
jchang authored
83 )
84
Something went wrong with that request. Please try again.