#!/usr/bin/env python
# -*- coding: utf-8 -*-

import platform
from cx_Freeze import setup, Executable

plat = platform.system()

if plat in [ 'Windows', 'Microsoft', 'Vista' ]: plat += '.' + platform.version()
else: plat += '.' + platform.machine()

executables = [
        Executable('mwfiltersgui.py', icon = 'icons/icon_Spar-5.ico',), # targetDir = 'build/lossyfilters.' + plat
]

buildOptions = dict(
#        compressed = True,
#        includes = ['sip', 'distutils.unixccompiler', 'PyQt4.QtSvg', 'scipy.linalg.cblas', 'scipy.linalg.fblas', 'scipy.linalg.flapack', 'scipy.linalg.clapack', 'encodings.utf_8', 'encodings.cp737', 'encodings.cp775', 'encodings.cp437', 'encodings.cp850', 'encodings.cp852', 'encodings.cp855', 'encodings.cp857', 'encodings.cp860', 'encodings.cp861', 'encodings.cp862', 'encodings.cp863', 'encodings.cp865', 'encodings.cp866', 'encodings.cp869'],
    includes = ['distutils.unixccompiler', 'PyQt4.Qt', 'scipy.linalg.cblas', 'scipy.linalg.fblas', 'scipy.linalg.flapack', 'scipy.linalg.clapack', 'scipy.linalg.calc_lwork', 'scipy.sparse.linalg.dsolve.umfpack', 'scipy.integrate.vode', 'encodings.utf_8', 'encodings.cp737', 'encodings.cp775', 'encodings.cp437', 'encodings.cp850', 'encodings.cp852', 'encodings.cp855', 'encodings.cp857', 'encodings.cp860', 'encodings.cp861', 'encodings.cp862', 'encodings.cp863', 'encodings.cp865', 'encodings.cp866', 'encodings.cp869'],
#        path = sys.path + ["modules"]
)

setup(
        name = "LossyFilters",
        version = "1.1",
	author = "J.M. Rius, J. Mateu, D. Mateu, J.M. Tamayo, C. Collado, J. O'Callaghan, Christoph Ernst",
        description = "Lossy filters synthesis",
        options = dict(build_exe = buildOptions),
        executables = executables)

# name	name of the package	short string	(1)
# version	version of this release	short string	(1)(2)
# author	package author's name	short string	(3)
# author_email	email address of the package author	email address	(3)
# maintainer	package maintainer's name	short string	(3)
# maintainer_email	email address of the package maintainer	email address	(3)
# url	home page for the package	URL	(1)
# description	short, summary description of the package	short string	
# long_description	longer description of the package	long string	
# download_url	location where the package may be downloaded	URL	(4)
# classifiers	a list of classifiers	list of strings	(4)		

# Notes:

# (1) These fields are required.
# (2)  It is recommended that versions take the form major.minor[.patch[.sub]].
# (3)  Either the author or the maintainer must be identified.
# (4)  These fields should not be used if your package is to be compatible with Python versions prior to 2.2.3 or 2.3. The list is available from the PyPI website.
# 'short string'
# A single line of text, not more than 200 characters.
# 'long string'
# Multiple lines of plain text in reStructuredText format (see http://docutils.sf.net/).
# 'list of strings'
# See below.
# None of the string values may be Unicode.

# Encoding the version information is an art in itself. Python packages generally adhere to the version format major.minor[.patch][sub]. The major number is 0 for initial, experimental releases of software. It is incremented for releases that represent major milestones in a package. The minor number is incremented when important new features are added to the package. The patch number increments when bug-fix releases are made. Additional trailing version information is sometimes used to indicate sub-releases. These are "a1,a2,...,aN" (for alpha releases, where functionality and API may change), "b1,b2,...,bN" (for beta releases, which only fix bugs) and "pr1,pr2,...,prN" (for final pre-release release testing). Some examples:
