| 1 |
#=============================================================================== |
|---|
| 2 |
# Delphos - a decision-making tool for community-based marine conservation. |
|---|
| 3 |
# |
|---|
| 4 |
# @copyright 2007 Ecotrust |
|---|
| 5 |
# @author Tim Welch |
|---|
| 6 |
# @contact twelch at ecotrust dot org |
|---|
| 7 |
# @license GNU GPL 2 |
|---|
| 8 |
# |
|---|
| 9 |
# This program is free software; you can redistribute it and/or |
|---|
| 10 |
# modify it under the terms of the GNU General Public License as published by |
|---|
| 11 |
# the Free Software Foundation; either version 2 of the License, or |
|---|
| 12 |
# (at your option) any later version. The full license for this distribution |
|---|
| 13 |
# has been made available in the file LICENSE.txt |
|---|
| 14 |
# |
|---|
| 15 |
# $Id$ |
|---|
| 16 |
# |
|---|
| 17 |
# @summary - configuration file for py2exe. Used to build a standalone |
|---|
| 18 |
# executable version of Delphos |
|---|
| 19 |
#=============================================================================== |
|---|
| 20 |
|
|---|
| 21 |
from py2exe.build_exe import py2exe |
|---|
| 22 |
from distutils.core import setup |
|---|
| 23 |
|
|---|
| 24 |
import matplotlib |
|---|
| 25 |
|
|---|
| 26 |
opts = { |
|---|
| 27 |
"py2exe": { |
|---|
| 28 |
"includes": ['sip','matplotlib.numerix.random_array', 'matplotlib.backends.backend_tkagg', 'sqlalchemy.databases.sqlite'], |
|---|
| 29 |
"excludes": ['backend_gtkagg', 'backend_wxagg'], |
|---|
| 30 |
"dll_excludes": ['libgdk_pixbuf-2.0-0.dll', 'libgobject-2.0-0.dll', 'libgdk-win32-2.0-0.dll'], |
|---|
| 31 |
"packages": ["sqlalchemy", "matplotlib", "pytz", "PyQt4._qt"], |
|---|
| 32 |
"dist_dir": "bin", |
|---|
| 33 |
} |
|---|
| 34 |
} |
|---|
| 35 |
|
|---|
| 36 |
setup(options = opts, |
|---|
| 37 |
windows=[{"script": "Delphos.py"}], |
|---|
| 38 |
data_files=[matplotlib.get_py2exe_datafiles()] |
|---|
| 39 |
) |
|---|