-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
43 lines (35 loc) · 1.08 KB
/
setup.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
"""
Script to generate the Windows-only executable
(packaged as "windows.zip"). It uses cx_Freeze,
and generates everything by running the command
"setup.py build".
The reference for cx_Freeze can be found at
<https://github.com/marcelotduarte/cx_Freeze>.
After generating everything, get sure to add the
"resource.pyxres" at the "build/exe.{whatever that goes here}"
directory!
"""
import sys
try:
from cx_Freeze import Executable, setup
except ImportError:
sys.exit("COuld not find package 'cx_Freeze'. Please install it and try again.")
EXPECTED_PYTHON = (3, 8)
if sys.platform != "win32":
sys.exit(
f"Error: Expected platform 'win32' for running this script, but got {sys.platform}"
)
elif EXPECTED_PYTHON > sys.version_info:
sys.exit(f"Error: Expected Python >= {EXPECTED_PYTHON}, but got {sys.version_info}")
setup(
name="Diddi and the Bugs",
description="Diddi vs. Bugs!",
author="Diego Ramirez",
author_email="dr01191115@gmail.com",
executables=[
Executable(
"main.py",
base="Win32GUI",
)
],
)