On Aug 15, 2009, at 7:01 AM, Chris Withers wrote:

With a buildout.cfg section that looks like:

[py]
recipe = zc.recipe.egg
eggs = ...
interpreter = py

If I try and do:

bin/py -m some.moldule

...I get:

Traceback (most recent call last):
 File "bin/py", line 28, in <module>
   _options, _args = getopt.getopt(sys.argv[1:], 'ic:')
 File "/usr/local/lib/python2.6/getopt.py", line 91, in getopt
   opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
 File "/usr/local/lib/python2.6/getopt.py", line 191, in do_shorts
   if short_has_arg(opt, shortopts):
 File "/usr/local/lib/python2.6/getopt.py", line 207, in short_has_arg
   raise GetoptError('option -%s not recognized' % opt, opt)

How should whatever generates bin/py be changed to enable -m to work?

The script is generated from a template near the bottom of zc.buildout.easy_install. Change it, to make it part of zc.buildout 1.4.

Gary

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to