From 1038ea323793c5f944e940585713c84dfea58ea1 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 23 Dec 2021 23:59:44 +0100 Subject: Don't include www in Python package The files in usr/share/swiftstory/www don't belong in the Python package. By making them not part of the package, we avoid errors when making symlinks to files that are provided by other Debian packages (e.g. libjs-jquery). Signed-off-by: Olivier Gayot --- setup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 5c4f5ce..8610d6a 100644 --- a/setup.py +++ b/setup.py @@ -4,11 +4,11 @@ from setuptools import setup, find_packages prefix = '/' -share_dir = 'usr/share/swiftstory/' +data_files_prefix = 'usr/share/swiftstory/lang' data_files = list() -for n in os.walk('usr'): +for n in os.walk(data_files_prefix): if len(n[2]) == 0: continue @@ -18,8 +18,6 @@ for n in os.walk('usr'): data_files.append((prefix + n[0] + '/', files)) -print(data_files) - setup( name = 'swiftstory', description = "SwiftStory game: We're not out of the woods yet.", -- cgit v1.2.3