I wrote a very simple program called test.py that looks like this:
print 'hello world'
then I wrote the setup.py installer that looks like this:
from distutils.core import setup import py2exe setup(console=['test.py'])
They are in the same folder, so it should work. When I run setup.py, it gives me error messages that look like this:
C:\Python26\lib\sets.py:85: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument stacklevel=2) Traceback (most recent call last): File "C:\Users\python2.6\Desktop\program\pygametests\setup.py", line 5, in <module> setup(console=['test.py']) File "C:\Python26\lib\distutils\core.py", line 140, in setup raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py
I am running windows vista.
source share