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

[21f5eb]: setup.py Maximize Restore History

Download this file

setup.py    32 lines (28 with data), 880 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
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', 'nosocket', 'readme.html']),
('icons', glob.glob(os.path.join('icons', '*.*')),
)],
options = {"py2exe": {"packages": ["encodings"],
"compressed": 1}}
)