forked from los-cocos/cocos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
82 lines (67 loc) · 2.34 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
# -*- coding: utf-8 -*-
"""setup -- setuptools setup file for cocos2d.
Supports the usual 'setup.py install' for cocos.
As a release builder:
last used: release 0.6.2, built from py2.7 + setuptools 5.7 (or 12.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 -2.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.3"
__date__ = "2015 04 26"
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import os
f = open('README.rst','rU')
long_description = f.read()
f.close()
install_requires=['six', ]
dependency_links = []
if os.environ.get("TRAVIS", False):
# Travis CI run
# We don't want to install pyglet
pass
else:
# normal install, add the pyglet dependency
install_requires.append('pyglet>=1.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://python.cocos2d.org",
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 :: 2",
"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,
)