Skip to content

Commit

Permalink
Add contents of files created for entry_points['console_scripts']
Browse files Browse the repository at this point in the history
  • Loading branch information
shailshouryya committed Feb 20, 2023
1 parent d2ad345 commit 83cae01
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__())
'''

0 comments on commit 83cae01

Please sign in to comment.