Skip to content

Commit

Permalink
added web package to setup.py and resources to manifest (pythons pack…
Browse files Browse the repository at this point in the history
…age resource handling is a pain in the ass...)
  • Loading branch information
dominikandreas committed Jan 18, 2019
1 parent 6f04dcf commit ee00b4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 6 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
recursive-include modtpy/res/dfu_util *
recursive-include modtpy/res/libusb/MS32/dll *.dll
recursive-include modtpy/res/libusb/MS64/dll *.dll
recursive-include modtpy/res/firmwares *.dfu
recursive-include modtpy/res/firmwares *.dfu
recursive-include modtpy/web/static *
recursive-include modtpy/web/static/css *
recursive-include modtpy/web/static/js *
recursive-include modtpy/web/static/webfonts *
recursive-include modtpy/web/templates *
9 changes: 3 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
import os
import sys

try:
from setuptools import setup
except ImportError:
from distutils.core import setup

from setuptools import setup, find_packages

if len(sys.argv) <= 1:
print("""
Expand Down Expand Up @@ -50,7 +46,8 @@
],
keywords='home automation',
include_package_data=True,
packages=['modtpy', 'modtpy.api', 'modtpy.cli', 'modtpy.res', 'modtpy.web'],
packages=['modtpy', 'modtpy.api', 'modtpy.cli', 'modtpy.res', 'modtpy.web',
'modtpy.web.main', 'modtpy.web.printer', 'modtpy.web.static', 'modtpy.web.templates'],
platforms=['linux', 'windows'],
install_requires=[
'pyusb', # for usb access, requires libusb
Expand Down

0 comments on commit ee00b4d

Please sign in to comment.