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