From 36e6ae18fc9a4eda018eae3b1d85b2dc200ffb88 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 9 Mar 2018 13:38:23 +0100 Subject: use setuptools instead of only distutils Signed-off-by: Olivier Gayot --- setup.py | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 05232cb..a1d389b 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,4 @@ -from distutils.core import setup - -packages = [ - 'swiftstory', - ] +from setuptools import setup, find_packages prefix = '/' share_dir = 'usr/share/swiftstory/' @@ -23,16 +19,17 @@ for n in os.walk('usr'): print(data_files) -scripts = [ - 'swiftstoryd', - ] - setup( - name='swiftstory', - version='0.1', - author='Olivier Gayot', - author_email='olivier.gayot@sigexec.com', - packages=packages, - data_files=data_files, - scripts=scripts, - ) + name = 'swiftstory', + description = "SwiftStory game: We're not out of the woods yet.", + version = '0.1', + author = 'Olivier Gayot', + author_email = 'olivier.gayot@sigexec.com', + packages = find_packages(), + data_files = data_files, + entry_points = { + 'console_scripts': [ + 'swiftstoryd = swiftstory.SwiftStory:main', + ], + } +) -- cgit v1.2.3