diff --git a/python/setup.py b/python/setup.py index 21cd394..09b8e7a 100644 --- a/python/setup.py +++ b/python/setup.py @@ -148,3 +148,30 @@ 'Source': 'https://github.com/shailshouryya/test-project' }, ) + +''' +files created by setuptools for the commands specified in entry_points['console_scripts'] for reference: + + +# contents of /path/to/your/bin/for/python_command/command_name: +#!/path/to/your/bin/for/python_command +# -*- coding: utf-8 -*- +import re +import sys +from test_project_python import function_name +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(function_name()) + + +# contents of /path/to/your/bin/for/python_command/command_name_for_function_in__main__: +#!/path/to/your/bin/for/python_command +# -*- coding: utf-8 -*- +import re +import sys +from test_project_python.__main__ import function_in__main__ +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(function_in__main__()) + +'''