From e377456dc12a05d685b31cab0b6d62f2c0864f5a Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Mon, 7 Jul 2014 14:08:33 -0400 Subject: Use entry point for bin stub The script in bin/ remains for running directly from the source directory. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index bde020f..33a30e3 100755 --- a/setup.py +++ b/setup.py @@ -37,5 +37,8 @@ setup(name='dotfiles', 'Programming Language :: Python :: 3.1', 'Programming Language :: Python :: 3.2', ), - scripts=['bin/dotfiles'], + entry_points = ''' + [console_scripts] + dotfiles=dotfiles.cli:main + ''', ) -- cgit v1.2.3