diff --git a/packaging/windows/init.ps1 b/packaging/windows/init.ps1 index 887b78d0a..37be0343c 100644 --- a/packaging/windows/init.ps1 +++ b/packaging/windows/init.ps1 @@ -90,6 +90,8 @@ C:\Python27\Scripts\pip.exe install base58==0.2.2 C:\Python27\Scripts\pip.exe install googlefinance==0.7 +C:\Python27\Scripts\pip.exe install jsonschema==2.5.1 + C:\Python27\Scripts\pip.exe install git+https://github.com/lbryio/lbryum.git cd C:\projects\lbry diff --git a/setup.py b/setup.py index c93a67812..353200305 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ import sys import os +import site from lbrynet import __version__ LINUX = 1 @@ -134,6 +135,10 @@ elif platform == WINDOWS: # Allow virtualenv to find distutils of base python installation distutils_path = os.path.join(os.path.dirname(opcode.__file__), 'distutils') + schemas = os.path.join(site.getsitepackages()[1], "jsonschema", "schemas") + onlyfiles = [f for f in os.listdir(schemas) if os.path.isfile(os.path.join(schemas, f))] + zipincludes = [(os.path.join(schemas, f), os.path.join("jsonschema", "schemas", f)) for f in onlyfiles] + def find_data_file(filename): if getattr(sys, 'frozen', False): # The application is frozen @@ -268,6 +273,7 @@ elif platform == WINDOWS: 'requests_futures', 'seccure', 'simplejson', + 'jsonschema', 'six', 'aes', 'txjsonrpc', @@ -291,7 +297,8 @@ elif platform == WINDOWS: (os.path.join(wordlist_path, 'portuguese.txt'), os.path.join('wordlist', 'portuguese.txt')), (os.path.join(wordlist_path, 'spanish.txt'), os.path.join('wordlist', 'spanish.txt')) ], - 'namespace_packages': ['zope', 'google']} + 'namespace_packages': ['zope', 'google'], + "zip_includes": zipincludes} tray_app = Executable( script=os.path.join(app_dir, 'LBRYWin32App.py'),