X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7114b9fa28654f7a9c118f6574f7c8e15fa5d302..b7b7742da5ee462d18e4b90e054f95bce48b64f6:/wxPython/samples/doodle/setup.py diff --git a/wxPython/samples/doodle/setup.py b/wxPython/samples/doodle/setup.py index 460ccbd34f..ea62656f13 100644 --- a/wxPython/samples/doodle/setup.py +++ b/wxPython/samples/doodle/setup.py @@ -1,12 +1,25 @@ -# # A distutils script to make a standalone .exe of superdoodle for -# Windows platforms. +# 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 # + +import sys, os from distutils.core import setup import py2exe +if sys.platform == "win32" and sys.version_info > (2, 4): + DATA = [("", os.path.join(sys.exec_prefix, 'msvcr71.dll'))] +else: + DATA = [] + + setup( name = "superdoodle", - scripts = ["superdoodle.py"] + #console = ["superdoodle.py"] + windows = ["superdoodle.py"], + data_files = DATA, )