Add ifmain to make setup.py import safe

This commit is contained in:
Aaron Tygart 2012-09-23 00:19:39 -05:00
parent 9bf2e74454
commit 44234ff2bd

View file

@ -199,4 +199,5 @@ else:
'scripts/salt-run',
'scripts/salt']
setup(**setup_kwargs)
if __name__ == '__main__':
setup(**setup_kwargs)