-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (19 loc) · 743 Bytes
/
setup.py
File metadata and controls
23 lines (19 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import sys
from distutils.core import setup
from cx_Freeze import Executable, setup
# Dependencies are automatically detected, but it might need fine tuning.
# build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]}
build_exe_options = {"excludes": ["tcl", "tkinter", "asyncio", "unittest", "email"]}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name="Printer",
version="0.2",
description="Подготовка распечаток для Wildberries",
options={"build_exe": build_exe_options},
packages=['qt'],
executables=[Executable("print.py", base=base, icon='Icon.ico')],
)