diff --git a/setupbase.py b/setupbase.py index 395f0b5..585dc43 100644 --- a/setupbase.py +++ b/setupbase.py @@ -337,7 +337,8 @@ def find_entry_points(): script_src = """#!{executable} # This script was automatically generated by setup.py from {mod} import {func} -{func}() +if __name__ == '__main__': + {func}() """ class build_scripts_entrypt(build_scripts):