[Distutils] Buildout. Can't start interpreter with -u option.

Jim Fulton jim at zope.com
Thu Jan 7 19:57:21 CET 2010


On Mon, Jan 4, 2010 at 4:22 PM, Максим Lacrima <lacrima.maxim at gmail.com> wrote:
> Hello!

Hi, sorry for the late reply.

>
> Suppose I have following buildout.cfg:
>
> [buildout]
> parts = python
> [python]
> recipe = zc.recipe.egg
> interpreter = python
> eggs = mypackage
>
> After running bin/buildout I have python interpreter in bin folder.
> My question is why I can't start the python interpreter with -u option, i.e.
> 'bin/python -u'.
> It fails with the following traceback:
> Traceback (most recent call last):
>   File "/home/maxim/projects/
> unikeeper/bin/python", line 11, in <module>
>     _options, _args = __import__("getopt").getopt(sys.argv[1:], 'ic:m:')
>   File "/usr/lib/python2.6/getopt.py", line 91, in getopt
>     opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
>   File "/usr/lib/python2.6/getopt.py", line 191, in do_shorts
>     if short_has_arg(opt, shortopts):
>   File "/usr/lib/python2.6/getopt.py", line 207, in short_has_arg
>     raise GetoptError('option -%s not recognized' % opt, opt)
> getopt.GetoptError: option -u not recognized
>
> Is it a bug?

Perhaps, or perhaps a missing feature. :)

In any case, you're right, the -u option isn't supported.

In the future, I expect support will be added for this as
well as some other unsupported options.

Jim

-- 
Jim Fulton


More information about the Distutils-SIG mailing list