
from distutils.core import setup, Extension
import numpy.distutils.misc_util
import os

os.environ['CC'] = 'g++'
#os.environ['CXX'] = 'g++'
#os.environ['CPP'] = 'g++'
#os.environ['LDSHARED'] = 'g++'


mmcorepy_module = Extension('_MMCorePy',
                           sources=['MMCorePy_wrap.cxx',
			'../MMDevice/DeviceUtils.cpp',
			'../MMDevice/ImgBuffer.cpp', 
			'../MMDevice/Property.cpp', 
			'../MMCore/CircularBuffer.cpp',
			'../MMCore/Configuration.cpp',
			'../MMCore/CoreCallback.cpp',
			'../MMCore/CoreProperty.cpp',
			'../MMCore/FastLogger.cpp',
			'../MMCore/MMCore.cpp',
			'../MMCore/PluginManager.cpp'],
			language = "c++",
			extra_objects = [],
                            include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),
                           )

setup (name = 'MMCorePy',
       version = '0.1',
       author      = "Micro-Manager",
       description = "Micro-Manager Core Python wrapper",
       ext_modules = [mmcorepy_module],
       py_modules = ["MMCorePy"],
       )



from distutils.core import setup, Extension
import numpy.distutils.misc_util
import os

os.environ['CC'] = 'g++'
#os.environ['CXX'] = 'g++'
#os.environ['CPP'] = 'g++'
#os.environ['LDSHARED'] = 'g++'


mmcorepy_module = Extension('_MMCorePy',
                            sources=['MMCorePy_wrap.cxx',
                                     '../MMCore/CircularBuffer.cpp',
                                     '../MMCore/Configuration.cpp',
                                     '../MMCore/CoreCallback.cpp',
                                     '../MMCore/CoreProperty.cpp',
                                     '../MMCore/FastLogger.cpp',
                                     '../MMCore/Host.cpp',
                                     '../MMCore/MMCore.cpp',
                                     '../MMCore/PluginManager.cpp',
                                     '../MMDevice/DeviceUtils.cpp',
                                     '../MMDevice/ImgBuffer.cpp',
                                    ],
                            language="c++",
                            include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),
                           )

setup(name='MMCorePy',
      version='0.1',
      author="Micro-Manager",
      description="Micro-Manager Core Python wrapper",
      ext_modules=[mmcorepy_module],
      py_modules=["MMCorePy"],
     )

Add MMCore/Host.cpp to Unix build.
MMCorePy: Add MMCore/Host.cpp to Unix build.

Was missing. Note that build is still broken (even though it does not
explicitly fail), at least on Mac OS X, because of missing libraries
(IOKit, CoreFoundation, and boost.system, I think).

Also removed MMDevice/Property.cpp, which is not needed here.

git-svn-id: 03a8048b5ee8463be5048a3801110fb50f378627@11992 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd

  
  from distutils.core import setup, Extension
  import numpy.distutils.misc_util
  import os
  
  os.environ['CC'] = 'g++'
  #os.environ['CXX'] = 'g++'
  #os.environ['CPP'] = 'g++'
  #os.environ['LDSHARED'] = 'g++'
  
  
  mmcorepy_module = Extension('_MMCorePy',
-                            sources=['MMCorePy_wrap.cxx',
+                             sources=['MMCorePy_wrap.cxx',
- 			'../MMDevice/DeviceUtils.cpp',
- 			'../MMDevice/ImgBuffer.cpp', 
- 			'../MMDevice/Property.cpp', 
- 			'../MMCore/CircularBuffer.cpp',
- 			'../MMCore/Configuration.cpp',
- 			'../MMCore/CoreCallback.cpp',
- 			'../MMCore/CoreProperty.cpp',
- 			'../MMCore/FastLogger.cpp',
- 			'../MMCore/MMCore.cpp',
- 			'../MMCore/PluginManager.cpp'],
- 			language = "c++",
- 			extra_objects = [],
+                                      '../MMCore/CircularBuffer.cpp',
+                                      '../MMCore/Configuration.cpp',
+                                      '../MMCore/CoreCallback.cpp',
+                                      '../MMCore/CoreProperty.cpp',
+                                      '../MMCore/FastLogger.cpp',
+                                      '../MMCore/Host.cpp',
+                                      '../MMCore/MMCore.cpp',
+                                      '../MMCore/PluginManager.cpp',
+                                      '../MMDevice/DeviceUtils.cpp',
+                                      '../MMDevice/ImgBuffer.cpp',
+                                     ],
+                             language="c++",
                              include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),
                             )
  
- setup (name = 'MMCorePy',
+ setup(name='MMCorePy',
-        version = '0.1',
+       version='0.1',
-        author      = "Micro-Manager",
+       author="Micro-Manager",
-        description = "Micro-Manager Core Python wrapper",
+       description="Micro-Manager Core Python wrapper",
-        ext_modules = [mmcorepy_module],
+       ext_modules=[mmcorepy_module],
-        py_modules = ["MMCorePy"],
+       py_modules=["MMCorePy"],
-        )
+      )
  
- 
Add MMCore/Host.cpp to Unix build.
## Code Before:

from distutils.core import setup, Extension
import numpy.distutils.misc_util
import os

os.environ['CC'] = 'g++'
#os.environ['CXX'] = 'g++'
#os.environ['CPP'] = 'g++'
#os.environ['LDSHARED'] = 'g++'


mmcorepy_module = Extension('_MMCorePy',
                           sources=['MMCorePy_wrap.cxx',
			'../MMDevice/DeviceUtils.cpp',
			'../MMDevice/ImgBuffer.cpp', 
			'../MMDevice/Property.cpp', 
			'../MMCore/CircularBuffer.cpp',
			'../MMCore/Configuration.cpp',
			'../MMCore/CoreCallback.cpp',
			'../MMCore/CoreProperty.cpp',
			'../MMCore/FastLogger.cpp',
			'../MMCore/MMCore.cpp',
			'../MMCore/PluginManager.cpp'],
			language = "c++",
			extra_objects = [],
                            include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),
                           )

setup (name = 'MMCorePy',
       version = '0.1',
       author      = "Micro-Manager",
       description = "Micro-Manager Core Python wrapper",
       ext_modules = [mmcorepy_module],
       py_modules = ["MMCorePy"],
       )


## Instruction:
Add MMCore/Host.cpp to Unix build.
## Code After:

from distutils.core import setup, Extension
import numpy.distutils.misc_util
import os

os.environ['CC'] = 'g++'
#os.environ['CXX'] = 'g++'
#os.environ['CPP'] = 'g++'
#os.environ['LDSHARED'] = 'g++'


mmcorepy_module = Extension('_MMCorePy',
                            sources=['MMCorePy_wrap.cxx',
                                     '../MMCore/CircularBuffer.cpp',
                                     '../MMCore/Configuration.cpp',
                                     '../MMCore/CoreCallback.cpp',
                                     '../MMCore/CoreProperty.cpp',
                                     '../MMCore/FastLogger.cpp',
                                     '../MMCore/Host.cpp',
                                     '../MMCore/MMCore.cpp',
                                     '../MMCore/PluginManager.cpp',
                                     '../MMDevice/DeviceUtils.cpp',
                                     '../MMDevice/ImgBuffer.cpp',
                                    ],
                            language="c++",
                            include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),
                           )

setup(name='MMCorePy',
      version='0.1',
      author="Micro-Manager",
      description="Micro-Manager Core Python wrapper",
      ext_modules=[mmcorepy_module],
      py_modules=["MMCorePy"],
     )
