File: setup.py

package info (click to toggle)
pype 2.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 832 kB
  • ctags: 953
  • sloc: python: 9,007; makefile: 54
file content (31 lines) | stat: -rw-r--r-- 899 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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

from distutils.core import setup
import pype
try:
    import py2exe
except:
    pass
import glob
import os

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

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