[Distutils] [buildout] zc.recipe.egg interpretters don't support -m

Chris Withers chris at simplistix.co.uk
Mon Aug 31 13:52:36 CEST 2009

Jim Fulton wrote:
> On Wed, Aug 26, 2009 at 2:12 PM, Chris Withers<chris at simplistix.co.uk> wrote:
>> Jim Fulton wrote:
>>>> http://docs.python.org/library/runpy.html#module-runpy
>>>> Hmmm, maybe it does just the right thing for -m?
>>> Perhaps.
>>>> In any case, any objections to me implementing this for buildout scripts?
>>> No, but I want to review it before you merge it to trunk.
>>>> If not, where is the actual code that generates the scripts?
>>> In the easy_install meodule.
>> Okay, I'll add it to my to-do list...
>> ...don't worry, no risk of it getting to the top anytime soon ;-)
> I went ahead and implemented this in 1.4.1.

Exellent, thanks :-)

...although I think there may still be some rough edges:

bin/py -m somemodule --some --options

...will throw an exception as the code in py tries to consume all the 

"real" python only consumes the -m and passed the rest on to the script.



More information about the Distutils-SIG mailing list