From 7822ed1d829aa34fe9c92de24f1f68042b05ed64 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Thu, 5 Feb 2015 21:17:23 -0500 Subject: 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 --- setup.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 9b3f9c1..18558d0 100644 --- 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' } -- cgit v1.2.3