[Tutor] distutil setup script
Gonçalo Rodrigues
op73418 at mail.telepac.pt
Wed Nov 26 19:39:03 EST 2003
On Wed, 26 Nov 2003 15:59:26 -0800 (PST), you wrote:
>i'm having trouble using a distutil setup script with py2exe. using the example given on their site, i created a setup script. however, when i go to run the script from command prompt (python setup-script.py py2exe ----- i think thats the right command), i get the following error:
>
> File "setup-script.py", line 8
> scripts=["thing.py"],
> ^
>SyntaxError: invalid syntax
>
>This is my setup script:
>
>#setup-script
>from distutils.core import setup
>import py2exe
>setup(name = "thing"
^^^^^^^^^^^^
Isn't a comma missing here?
> scripts=["thing.py"],
>)
>
It should be:
setup(name = "thing",
scripts=["thing.py"],)
Best,
G. Rodrigues
More information about the Tutor
mailing list