from distutils.core import setup
import py2exe
import sys
import os

##################################
# Please, use here only \\ not \/
##################################
basepath = os.getcwd() + '\\'
sys.path.append(basepath)
sys.path.append('C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\redist\\x86\\Microsoft.VC90.CRT')
##########################################
# Dont'use optimize or unbuffered options
##########################################
setup(
        console = [basepath + 'timeneuro_mod.py'],
        options = {
                    "py2exe": {
                            "includes": ['dircache', 'fpformat', 'csv'],
                            "excludes": ['pylab', 'mdp'],
                            "dist_dir": basepath + 'timeneuro_mod\\',
                            "optimize": 2
                            #"dll_excludes": ["MSVCP90.dll"]
                            #"ascii":    True,
                            #"compressed": True,
                            }
                  }
    )


"""
# We need to import the glob module to search for all files.
import glob

# We need to exclude matplotlib backends not being used by this executable.  You may find
# that you need different excludes to create a working executable with your chosen backend.
# We also need to include matplotlib.numerix.random_array
opts = {
    'py2exe': { 'includes': 'matplotlib.numerix.random_array',
                'excludes': ['_gtkagg', '_tkagg'],
                'dll_excludes': ['libgdk-win32-2.0-0.dll',
                                 'libgobject-2.0-0.dll']
              }
       }

# Additional data files are required by matplotlib.  Note that the glob.glob routine
# doesn't seem to pick up the .matplotlib resource file, so I copy that separately.
# Do the same if you need to
setup(
    data_files = [(r'matplotlibdata', glob.glob(r'c:\python25\share\matplotlib\*')),
                  (r'matplotlibdata', [r'c:\python25\share\matplotlib\.matplotlibrc'])],
    name = 'demo',
    description = 'MatPlotLib Demo Program',
    console = ['demo.py']
    )
"""

