[Tutor] p2exe and icons

Trent Brown tbrown at occamnetworks.com
Thu Jan 8 01:21:22 EST 2004


Seems that my version of py2exe will does not support the --icon flag 
(that or I'm doing something very wrong that I just don't see). Running 
it with the --icon flag returns an unknown option flag, and help does 
not list it as a supported option.

any help appreciated!

thx
trent


C:\Data\Python\Compile\Demo1a>python setup.py py2exe --icon
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --icon not recognized

C:\Data\Python\Compile\Demo1a>python setup.py py2exe -help
Global options:
  --verbose (-v)  run verbosely (default)
  --quiet (-q)    run quietly (turns verbosity off)
  --dry-run (-n)  don't actually do anything
  --help (-h)     show detailed help message

Options for 'py2exe' command:
  --optimize (-O)    optimization level: -O1 for "python -O", -O2 for 
"python
                     -OO", and -O0 to disable [default: -O0]
  --dist-dir (-d)    directory to put final built distributions in 
(default is
                     dist)
  --excludes (-e)    comma-separated list of modules to exclude
  --ignores          comma-separated list of modules to ignore if they 
are not
                     found
  --includes (-i)    comma-separated list of modules to include
  --packages (-p)    comma-separated list of packages to include
  --compressed (-c)  create a compressed zipfile

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help


C:\Data\Python\Compile\Demo1a>python setup.py py2exe -help
Global options:
  --verbose (-v)  run verbosely (default)
  --quiet (-q)    run quietly (turns verbosity off)
  --dry-run (-n)  don't actually do anything
  --help (-h)     show detailed help message

Options for 'py2exe' command:
  --optimize (-O)    optimization level: -O1 for "python -O", -O2 for 
"python
                     -OO", and -O0 to disable [default: -O0]
  --dist-dir (-d)    directory to put final built distributions in 
(default is
                     dist)
  --excludes (-e)    comma-separated list of modules to exclude
  --ignores          comma-separated list of modules to ignore if they 
are not
                     found
  --includes (-i)    comma-separated list of modules to include
  --packages (-p)    comma-separated list of packages to include
  --compressed (-c)  create a compressed zipfile

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help





More information about the Tutor mailing list