setup.py: Add package_data
This commit is contained in:
parent
fda8bcddc8
commit
d0f11e3398
4
setup.py
4
setup.py
@ -11,9 +11,11 @@ PACKAGES = ['greenhouse']
|
|||||||
REQUIRES = ['Flask', 'w1thermsensor', 'RPi.GPIO']
|
REQUIRES = ['Flask', 'w1thermsensor', 'RPi.GPIO']
|
||||||
CONFIG_FOLDER = '/etc/greenhouse'
|
CONFIG_FOLDER = '/etc/greenhouse'
|
||||||
CONFIG_FILE = 'greenhouse.json'
|
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,
|
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':
|
if sys.argv[1] == 'install':
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user