2009-09-03 09:46:22 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
"""setup.py
|
|
|
|
|
|
|
|
Py2exe script for fpdb.
|
|
|
|
"""
|
|
|
|
# Copyright 2009, Ray E. Barker
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
#TODO: change GuiAutoImport so that it knows to start HUD_main.exe, when appropriate
|
|
|
|
# include the lib needed to handle png files in mucked
|
|
|
|
# get rid of all the uneeded libraries (e.g., pyQT)
|
|
|
|
# think about an installer
|
|
|
|
|
2009-11-09 04:51:15 +01:00
|
|
|
#HOW TO USE this script:
|
|
|
|
#
|
|
|
|
# cd to the folder where this script is stored, usually .../pyfpdb.
|
|
|
|
# If there are build and dist subfolders present , delete them to get
|
|
|
|
# rid of earlier builds.
|
|
|
|
# Run the script with "py2exe_setup.py py2exe"
|
|
|
|
# You will frequently get messages about missing .dll files. E. g.,
|
|
|
|
# MSVCP90.dll. These are somewhere in your windows install, so you
|
|
|
|
# can just copy them to your working folder.
|
|
|
|
# If it works, you'll have 2 new folders, build and dist. Build is
|
|
|
|
# working space and should be deleted. Dist contains the files to be
|
|
|
|
# distributed. Last, you must copy the etc/, lib/ and share/ folders
|
|
|
|
# from your gtk/bin/ folder to the dist folder. (the whole folders, not
|
|
|
|
# just the contents) You can (should) then prune the etc/, lib/ and
|
|
|
|
# share/ folders to remove components we don't need.
|
|
|
|
|
2009-09-03 09:46:22 +02:00
|
|
|
from distutils.core import setup
|
|
|
|
import py2exe
|
2010-02-06 05:03:55 +01:00
|
|
|
import glob
|
2009-09-03 09:46:22 +02:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name = 'fpdb',
|
|
|
|
description = 'Free Poker DataBase',
|
|
|
|
version = '0.12',
|
|
|
|
|
2010-02-06 05:03:55 +01:00
|
|
|
console = [ {'script': 'fpdb.py', "icon_resources": [(1, "../gfx/fpdb_large_icon.ico")]},
|
2009-11-09 04:51:15 +01:00
|
|
|
{'script': 'HUD_main.py', },
|
|
|
|
{'script': 'Configuration.py', }
|
2009-09-03 09:46:22 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
options = {'py2exe': {
|
|
|
|
'packages' :'encodings',
|
2010-02-04 19:08:26 +01:00
|
|
|
'includes' : 'cairo, pango, pangocairo, atk, gobject, PokerStarsToFpdb, FulltiltToFpdb',
|
|
|
|
'excludes' : '_tkagg, _agg2, cocoaagg, fltkagg',
|
2009-09-03 09:46:22 +02:00
|
|
|
'dll_excludes': 'libglade-2.0-0.dll',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2009-11-09 05:00:15 +01:00
|
|
|
data_files = ['HUD_config.xml.example',
|
2009-11-09 04:51:15 +01:00
|
|
|
'Cards01.png',
|
2009-11-10 04:02:50 +01:00
|
|
|
'logging.conf',
|
2010-02-04 19:08:26 +01:00
|
|
|
(r'mpl-data', [r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\matplotlibrc']),
|
|
|
|
(r'mpl-data\images', glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\images\*.*')),
|
2010-02-06 05:03:55 +01:00
|
|
|
(r'mpl-data\fonts', glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\fonts\*.*')),
|
2009-09-03 09:46:22 +02:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|