From 41ffee5d8a612741d1fb5f3f4fd0fca00754f392 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Sun, 31 Oct 2010 09:16:18 +0000 Subject: [PATCH] change entry_points to a dictionary and split it up into console and gui scripts --- setup.py | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index 6665aaef8..c9a2cf33b 100644 --- a/setup.py +++ b/setup.py @@ -422,10 +422,26 @@ _data_files = [ 'docs/man/deluge-console.1']) ] +entry_points = { + "console_scripts": [ + "deluge-console = deluge.ui.console:start", + "deluge-web = deluge.ui.web:start", + "deluged = deluge.main:start_daemon" + ], + "gui_scripts": [ + "deluge = deluge.main:start_ui", + "deluge-gtk = deluge.ui.gtkui:start" + ] +} + + +if windows_check(): + entry_points["console-scripts"].append("deluge-debug = deluge.main:start_ui") + # Main setup setup( name = "deluge", - version = "1.3.0", + version = "1.3.1", fullname = "Deluge Bittorrent Client", description = "Bittorrent Client", author = "Andrew Resch, Damien Churchill", @@ -469,12 +485,5 @@ setup( "ui/web/themes/images/*/*/*.png" ]}, packages = find_packages(exclude=["plugins", "docs", "tests"]), - entry_points = """ - [console_scripts] - deluge = deluge.main:start_ui - deluge-console = deluge.ui.console:start - deluge-gtk = deluge.ui.gtkui:start - deluge-web = deluge.ui.web:start - deluged = deluge.main:start_daemon - """, + entry_points = entry_points )