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

cx_freeze build to have an easy-to-deploy app

parent 70572637
No related branches found
No related tags found
No related merge requests found
[submodule "lib/ucoinpy"]
path = lib/ucoinpy
url = https://github.com/ucoin-io/ucoin-python-api.git
Subproject commit 4a17d70b2e588bbda52a414977f132853b0900f4
setup.py 0 → 100644
#!/usr/bin/python
# -*- coding: utf-8 -*-
# source d'inspiration: http://wiki.wxpython.org/cx_freeze
import sys, os
from cx_Freeze import setup, Executable
#############################################################################
# preparation des options
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'lib')))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'src')))
print(sys.path)
includes = ["sip", "re", "json", "logging", "hashlib", "os", "urllib", "ucoinpy"]
excludes = []
packages = ["gnupg"]
options = {"path": sys.path,
"includes": includes,
"excludes": excludes,
"packages": packages
}
#############################################################################
# preparation des cibles
base = None
if sys.platform == "win32":
base = "Win32GUI"
target = Executable(
script = "src/cutecoin/__init__.py",
base = base,
compress = True,
icon = None,
)
#############################################################################
# creation du setup
setup(
name = "cutecoin",
version = "0.3.0",
description = "UCoin client",
author = "Inso",
options = {"build_exe": options},
executables = [target]
)
'''
Created on 11 mars 2014
@author: inso
'''
'''
Created on 11 mars 2014
@author: inso
'''
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