lets try letting python build mussa
authorDiane Trout <diane@caltech.edu>
Wed, 10 May 2006 08:43:58 +0000 (08:43 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 10 May 2006 08:43:58 +0000 (08:43 +0000)
I wonder how distutils will fare building mussa? As I made more progress
getting to interact with the C++ libraries from python than the reverse
I want to see if I can everything to build with just distutils.

setup.py [new file with mode: 0644]

diff --git a/setup.py b/setup.py
new file mode 100644 (file)
index 0000000..17d6304
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,37 @@
+from setuptools import setup, Extension
+
+import os
+mussa_ext = Extension("mussa", ["py/conserved_path.cpp",
+                                "py/glsequence.cpp",
+                                "py/module.cpp",
+                                "py/mussa.cpp",
+                                #"py/MussaWindow.cpp",
+                                "py/nway_paths.cpp",
+                                "py/sequence.cpp",
+                                "alg/annotation_colors.cpp",
+                                "alg/color.cpp",
+                                "alg/conserved_path.cpp",
+                                "alg/flp.cpp",
+                                "alg/flp_seqcomp.cpp",
+                                "alg/glseqbrowser.cpp",
+                                "alg/glsequence.cpp",
+                                "alg/mussa.cpp",
+                                "alg/nway_entropy.cpp",
+                                "alg/nway_other.cpp",
+                                "alg/nway_paths.cpp",
+                                #"alg/nway_refine",
+                                #"alg/parse_options.cpp",
+                                "alg/sequence.cpp"],
+                      include_dirs=['/usr/include/boost',
+                                    '.'
+                                   #os.getcwd()
+                                   ],
+                      libraries=['boost_python', 
+                                 'boost_filesystem',
+                                 'GL',
+                                 ])
+
+setup(name='mussa',
+      version='0.0',
+      ext_modules=[mussa_ext])
+