forked from tonioo/rst2pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfreeze.py
46 lines (41 loc) · 977 Bytes
/
freeze.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- coding: utf-8 -*-
import cx_Freeze
import sys
base = None
if sys.platform == "win32":
base = "Win32GUI"
includes = [ "sip",
"PyQt4.QtXml"
]
packages = [ "pygments" ,
"pygments.lexers",
"pygments.styles",
"docutils.writers",
"docutils.readers",
"docutils.languages",
]
excludes = [ "matplotlib",
"PythonMagick",
"sphinx",
"pyPdf"
]
executables = [
cx_Freeze.Executable("main.py",
base = base, )
]
includeFiles = [
("../rst2pdf/styles", "styles"),
]
options = dict(
#copyDependentFiles = True,
include_files = includeFiles,
includes = includes,
excludes = excludes,
packages = packages)
cx_Freeze.setup(
name = "bookrest",
version = "0.1",
description = "A rst2pdf GUI",
executables = executables,
options = dict(build_exe = options)
)