Éric Araujo added the comment: > The principle of least surprise suggests that run_setup() should behave > equivalently > to a command line invocation of setup.py.
That’s debatable: distutils.core.setup corresponds to a command-line invocation of setup.py, but run_setup is documented as something else: http://docs.python.org/3.4/distutils/apiref#distutils.core.run_setup In general, distutils lends itself poorly to programmatic usage. Can you tell more about your use case for calling run_setup directly? > Many setup.py scripts use the idiomatic 'conditional script' stanza > "if __name__ == '__main__'". That’s surprising to me: setup.py scripts are not modules-that-also-work-as-scripts, only scripts. ---------- versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18970> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com