[Distutils] profiling setuptools console scripts
chrism at plope.com
Wed Sep 5 22:50:23 CEST 2007
On Sep 5, 2007, at 1:52 PM, Phillip J. Eby wrote:
> At 01:03 PM 9/5/2007 -0400, Chris McDonough wrote:
>> This is very minor, but I recently ran across a case where I wanted
>> to profile some code invoked that is invoked by a setuptools
>> console_script. The generated script is in the form:
>> load_entry_point('supervisor==3.0a2', 'console_scripts',
>> Due to the explicit sys.exit() call, I could not (or at least could
>> not figure out how to) place the profiling hair in the invoked code.
> Why not just change the entry point to refer to your profiling
That works great.
More information about the Distutils-SIG