Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[2c229c]: setup.py Maximize Restore History

Download this file

setup.py    27 lines (23 with data), 752 Bytes

 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
# 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 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', 'nosocket']),
('icons', glob.glob('icons\\*.*'),
)],
options = {"py2exe": {"packages": ["encodings"]}}
)