<div dir="ltr">Hi nice distutils/PyPA people,<div><br></div><div>I had a question that probably is worth showing up in the archives. Namely:</div><div><br></div><div>It seems to me like bizarre bad form for the setup.py file to execute what amounts to a main() function at import time.</div>
<div><br></div><div>I presume this is just some kind of historical accident, and if the early authors of the distutils docs were careful, they'd have recommended:</div><div><br></div><div>from distutils.core import setup</div>
<div><br></div><div>if __name__ == '__main__':</div><div>    setup()  # FIXME args</div><div><br></div><div><br></div><div>rather than just:</div><div><br></div><div>from distutils.core import setup</div><div><br>
</div><div>setup()  # FIXME args</div><div><br></div><div><br></div><div><br></div><div>Is that an accurate assessment? If so, that's great, because I plan to remark on this bemusedly in my talk. If there is a reason it is the way it is, however, then I will avoid making a joke that is wrong in an important way.</div>
<div><br></div><div>-- Asheesh.</div></div>