api: Use the console_scripts entry point to point to zulip-send.

Instead of using the `scripts` keyword, we now use the
`console_scripts` entry point to point to the zulip-send script
to be installed. This is what the Python Packaging User Guide
recommends for better cross-platform compatibility.
This commit is contained in:
Eeshan Garg 2017-05-21 19:54:16 -02:30 committed by Tim Abbott
parent 9b20750456
commit 2d785ea3d1
2 changed files with 5 additions and 1 deletions

View file

@ -57,7 +57,11 @@ package_info = dict(
"examples/subscribe",
"examples/unsubscribe",
])] + list(recur_expand('share/zulip', 'integrations/')),
scripts=["bin/zulip-send"],
entry_points={
'console_scripts': [
'zulip-send=zulip.send:main',
],
},
) # type: Dict[str, Any]
setuptools_info = dict(