Skip to content
Snippets Groups Projects
Commit a936dec2 authored by inso's avatar inso
Browse files

Fix build process

parent 5c5f1bba
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,7 @@ install: ...@@ -57,6 +57,7 @@ install:
- pip install base58 - pip install base58
- pip install quamash - pip install quamash
- pip install aiohttp - pip install aiohttp
- pip install jsonschema
- pip install git+https://github.com/ucoin-io/ucoin-python-api.git - pip install git+https://github.com/ucoin-io/ucoin-python-api.git
- pip install git+https://github.com/Insoleet/pretenders.git@develop - pip install git+https://github.com/Insoleet/pretenders.git@develop
- python gen_resources.py - python gen_resources.py
......
...@@ -17,6 +17,7 @@ pip install requests ...@@ -17,6 +17,7 @@ pip install requests
pip install base58 pip install base58
pip install git+https://github.com/Insoleet/quamash.git@sockets_only pip install git+https://github.com/Insoleet/quamash.git@sockets_only
pip install aiohttp pip install aiohttp
pip install jsonschema
pip install git+https://github.com/ucoin-io/ucoin-python-api.git pip install git+https://github.com/ucoin-io/ucoin-python-api.git
pip install pretenders pip install pretenders
...@@ -27,4 +28,4 @@ python gen_translations.py ...@@ -27,4 +28,4 @@ python gen_translations.py
if %errorlevel% neq 0 exit /b 1 if %errorlevel% neq 0 exit /b 1
python setup.py build python setup.py build
if %errorlevel% neq 0 exit /b 1 if %errorlevel% neq 0 exit /b 1
\ No newline at end of file
...@@ -3,9 +3,11 @@ ...@@ -3,9 +3,11 @@
# source d'inspiration: http://wiki.wxpython.org/cx_freeze # source d'inspiration: http://wiki.wxpython.org/cx_freeze
import sys, os, subprocess, multiprocessing import sys, os, subprocess, multiprocessing, site
from cx_Freeze import setup, Executable from cx_Freeze import setup, Executable
from PyQt5 import QtCore from PyQt5 import QtCore
from os import listdir
from os.path import isfile, join
############################################################################# #############################################################################
# preparation des options # preparation des options
...@@ -17,11 +19,19 @@ print(os.environ) ...@@ -17,11 +19,19 @@ print(os.environ)
includes = ["sip", "re", "json", "logging", includes = ["sip", "re", "json", "logging",
"hashlib", "os", "urllib", "hashlib", "os", "urllib",
"ucoinpy", "pylibscrypt", "aiohttp", "asyncio", "ucoinpy", "pylibscrypt", "aiohttp", "asyncio",
"quamash"] "quamash", "jsonschema"]
exclude = ['.git'] exclude = ['.git']
packages = ["libnacl", "encodings"] packages = ["libnacl", "encodings", "jsonschema"]
includefiles = [] includefiles = []
zipincludes = []
schemas = os.path.join(site.getsitepackages()[0], "jsonschema", "schemas")
onlyfiles = [ f for f in listdir(schemas) if isfile(join(schemas,f)) ]
for f in onlyfiles:
zipincludes.append((os.path.join(schemas, f), os.path.join("jsonschema", "schemas", f)))
if sys.platform == "win32": if sys.platform == "win32":
app = QtCore.QCoreApplication(sys.argv) app = QtCore.QCoreApplication(sys.argv)
...@@ -75,6 +85,7 @@ options = {"path": sys.path, ...@@ -75,6 +85,7 @@ options = {"path": sys.path,
"include_files": includefiles, "include_files": includefiles,
"excludes": exclude, "excludes": exclude,
"packages": packages, "packages": packages,
"zip_includes": zipincludes
} }
############################################################################# #############################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment