-
Notifications
You must be signed in to change notification settings - Fork 146
/
setup.py
84 lines (69 loc) · 2.48 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
77
78
79
80
81
82
83
84
# -*- coding: utf-8 -*-
"""setup -- setuptools setup file for cocos2d.
Supports the usual 'setup.py install' for cocos.
As a release builder:
release 0.6.2, built from py2.7 + setuptools 5.7 (or 12.2)
release 0.6.4 built from py 3.5 + setuptools 18.2 (or 23.0.0)
release 0.6.5 built from py 3.6 + setuptools 28.8.0
release 0.6.6 built from py 3.7 + setuptools 40.6.2
example operation for generating release without handling the docs:
git clone https://github.com/los-cocos/cocos.git cocos_trunk
cd cocos_trunk
py -3.7 setup.py sdist >../sdist.log
[ the generated package will be in cocos_trunk/dist ]
Look at tools/building_release_notes.txt for more info about building
release.
"""
__author__ = "cocos2d team"
__author_email__ = "lucio.torre@gmail.com"
__version__ = "0.6.10"
__date__ = "2023 07 16"
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
import os
f = open('README.rst','r')
long_description = f.read()
f.close()
install_requires=['six>=1.4', ]
dependency_links = []
if os.environ.get("CI", False):
# Github actions CI run
# We don't want to install pyglet
pass
else:
# normal install, add the pyglet dependency
install_requires.append('pyglet >= 1.4.10, < 2')
setup(
name = "cocos2d",
version = __version__,
author = "cocos2d Team",
license="BSD",
description = "a 2D framework for games and multimedia",
long_description=long_description,
url = "http://los-cocos.github.io/cocos-site",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: MacOS X",
"Environment :: Win32 (MS Windows)",
"Environment :: X11 Applications",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
("Topic :: Software Development :: Libraries :: Python Modules"),
("Topic :: Games/Entertainment"),
],
packages = ['cocos', 'cocos/actions', 'cocos/audio', 'cocos/layer', 'cocos/scenes'],
package_data={'cocos': ['resources/*.*']},
install_requires=install_requires,
dependency_links=dependency_links,
include_package_data = True,
zip_safe = False,
)