-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (30 loc) · 749 Bytes
/
setup.py
File metadata and controls
34 lines (30 loc) · 749 Bytes
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
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == "win32":
base = "Win32GUI"
executableOptions = [
Executable(
"PyDymoLabel.py",
appendScriptToExe=True,
appendScriptToLibrary=False,
targetName="PyDymoLabel.exe",
base = base # <-- this is needed to hide Windows console
)
]
buildOptions = dict(
compressed=True,
create_shared_zip = False,
excludes = [],
packages = [],
include_files = ['my.label'],
)
setup(
name = "PyDymoLabel",
version = '1.0',
description = "A simple tool to print labels with Dymo printers",
author = 'Matteo Mattei',
author_email = 'matteo.mattei@gmail.com',
options = dict(build_exe = buildOptions),
executables = executableOptions
)