diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-26 13:53:33 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-26 16:18:08 +0100 |
commit | 76b9f0df4feb664b41ab7a23f9be2abafa16c949 (patch) | |
tree | 609e3a3071debb483b2c8bc1d279fa849fd4adcc /setup.py | |
parent | 69072a2abac7d2486e542b9b6ecedcc37016ea27 (diff) |
Use more modern packaging systemchange-packaging
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 35 |
1 files changed, 5 insertions, 30 deletions
@@ -1,34 +1,9 @@ -import os +""" Dummy setup.py to help pybuild figure out what to do until a Build-Depend +on dh-python-pep517 can be added. """ -from setuptools import setup, find_packages +from setuptools import setup -prefix = '/' -share_dir = 'usr/share/swiftstory/' -data_files = list() - -for n in os.walk('usr'): - if len(n[2]) == 0: - continue - - files = list() - for f in n[2]: - files.append(n[0] + '/' + f) - - data_files.append((prefix + n[0] + '/', files)) - -setup( - 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.__main__:main', - ], - } -) +if __name__ == "__main__": + setup() |