~ubuntu-branches/ubuntu/maverick/pype/maverick-updates

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# setup.py
# to make a binary for windows from source...
# 1. download and install the py2exe utility from:
#      http://starship.python.net/crew/theller/py2exe/
# 2. run the following command:
#      python setup.py py2exe -w -f
from distutils.core import setup
#import py2exe
import pype
import glob

nam = "PyPE-win32"
if pype.VS[-1] == 'u':
    nam += '-unicode'

setup(name=nam,
      version=pype.VERSION_,
      windows=[{"script": "pype.py",
                "icon_resources": [(1, "icons/pype.ico")]}],
      data_files=[('', glob.glob('*.txt')+['stc-styles.rc.cfg', 'pype.pyw']),
                  ('icons', glob.glob('icons/*.*'),
                  )],
      #options = {"py2exe": {"packages": ["encodings"]}}
)