File: setup.py

package info (click to toggle)
pythoncard 0.8.2-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,452 kB
  • sloc: python: 56,787; makefile: 56; sh: 22
file content (27 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (3)
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
# A distutils script to make a standalone .exe of minimal for
# Windows platforms.  You can get py2exe from
# http://py2exe.sourceforge.net/.  Use this command to build the .exe
# and collect the other needed files:
#
#       python setup.py py2exe --excludes=Image
#

"""
__version__ = "$Revision: 1.3 $"
__date__ = "$Date: 2005/04/05 18:44:54 $"
"""

from distutils.core import setup
import sys

if sys.platform == 'darwin':
    import py2app
    buildstyle = 'app'
else:
    import py2exe
    buildstyle = 'console'

setup( name = "minimal",
       data_files = [ (".", ["readme.txt", "minimal.rsrc.py"]) ],
       **{buildstyle: ["minimal.py"]}
       )