commit 7822ed1d829aa34fe9c92de24f1f68042b05ed64
parent 16f346ac5f59c7ce7c1349c1436d0821c9e0ca4c
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date: Thu, 5 Feb 2015 21:17:23 -0500
setup.py: added 'console_scripts' under 'entry_points'
Now, whenever combox is installed using 'python setup.py install'
command, the setup script automatically puts an executed script in the
respective bin/ directory in Unix like operating systems.
According to the setuptools documentation[1], on Windows, it should
create a respective .exe file. This is yet to be tested.
[1]: https://pythonhosted.org/setuptools/setuptools.html#automatic-script-creation
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/setup.py b/setup.py
@@ -35,6 +35,9 @@ config = {
'pickledb'],
'packages': ['combox'],
'scripts': [],
+ 'entry_points': {
+ 'console_scripts': ['combox = combox.cbox:main']
+ },
'name': 'combox'
}