From d0f11e33980b3f0d6d529a8e6ecd30f83c07515d Mon Sep 17 00:00:00 2001 From: tkl Date: Tue, 6 Apr 2021 05:39:43 +0000 Subject: [PATCH] setup.py: Add package_data --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 65befdd..b9fe8b9 100755 --- a/setup.py +++ b/setup.py @@ -11,9 +11,11 @@ PACKAGES = ['greenhouse'] REQUIRES = ['Flask', 'w1thermsensor', 'RPi.GPIO'] CONFIG_FOLDER = '/etc/greenhouse' CONFIG_FILE = 'greenhouse.json' +PACKAGE_DATA = {'greenhouse': ['templates/*', 'static/css/*', 'static/scripts/*']} setup(name=NAME, version=VERSION, long_description=__doc__, author=AUTHOR, author_email=EMAIL, - packages=PACKAGES, include_package_data=True, zip_safe=False, install_requires=REQUIRES) + packages=PACKAGES, include_package_data=True, package_data=PACKAGE_DATA, zip_safe=False, + install_requires=REQUIRES) if sys.argv[1] == 'install': try: