summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2018-03-09 13:38:23 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2018-03-09 13:38:23 +0100
commit36e6ae18fc9a4eda018eae3b1d85b2dc200ffb88 (patch)
tree7f4af1ce194d491d2b5fe6d18a7ec923ac1bcd87 /setup.py
parent5b38682951fadbd1cf9fed191b4e65b7490fd8eb (diff)
use setuptools instead of only distutils
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py31
1 files changed, 14 insertions, 17 deletions
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',
+ ],
+ }
+)