-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
76 lines (67 loc) · 2.3 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
from setuptools import setup, find_packages
import os
from os import path
import sys
here = path.abspath(path.dirname(__file__))
name = "parrotjoy"
from io import open
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
freeze_cmds = ["bdist_dmg", "bdist_msi", "build_exe", "bdist_mac"]
if any(x in sys.argv for x in freeze_cmds):
# https://cx-freeze.readthedocs.io/en/latest/distutils.html
# Note: we needed to use git cx_freeze because it does not work on mac py3.7.
# git+https://github.com/anthony-tuininga/cx_Freeze.git
#
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
"packages": ["os", "pygame", "sys", "random"],
"excludes": ["tkinter"],
}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform.startswith("win"):
base = "Win32GUI"
options = {"build_exe": build_exe_options}
executables = [Executable("run_game.py", base=base)]
print("options, executables, base", options, executables, base)
else:
options = {}
executables = []
setup(
name=name,
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: pygame",
"Topic :: Games/Entertainment :: Arcade",
],
license="LGPL",
author="parrotjoy team",
author_email="[email protected]",
maintainer="parrotjoy team",
maintainer_email="[email protected]",
description="parrotjoy",
include_package_data=True,
long_description=long_description,
long_description_content_type="text/markdown",
options=options,
executables=executables,
package_dir={"parrotjoy": "parrotjoy"},
packages=find_packages(),
# package_data={'parrotjoy': []},
url="https://github.com/pygame/parrotjoy",
install_requires=[
"pygame",
],
version="0.0.1.dev0",
entry_points={
"console_scripts": [
"parrotjoy=parrotjoy.cli:main",
],
},
)