forked from mcedit/mcedit2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
88 lines (80 loc) · 2.67 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
85
86
87
88
from setuptools import setup
from Cython.Build import cythonize
# Output annotated .html
import Cython.Compiler.Options
Cython.Compiler.Options.annotate = True
import numpy
with file("version.txt") as f:
version = f.read().strip()
install_requires = [
# -*- Extra requirements: -*-
"numpy",
]
mceditlib_ext_modules = cythonize("src/mceditlib/nbt.pyx")
setup(name='mceditlib',
version=version,
description="Python library for editing Minecraft levels",
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
],
keywords='minecraft',
author='David Vierra',
author_email='[email protected]',
url='https://github.com/mcedit/mcedit2',
license='MIT License',
packages=["mceditlib"],
package_dir={'': 'src'},
ext_modules=mceditlib_ext_modules,
include_dirs=numpy.get_include(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
)
mcedit2_ext_modules = cythonize(
[
"src/mcedit2/rendering/blockmodels.pyx",
"src/mcedit2/rendering/modelmesh.pyx",
]
)
setup(name='mcedit2',
version=version,
description="Interactive 3D World Editor for Minecraft Levels",
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Win32 (MS Windows)",
"Environment :: X11 Applications :: Qt",
"Environment :: MacOS X",
"Intended Audience :: End Users/Desktop",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
],
keywords='minecraft',
author='David Vierra',
author_email='[email protected]',
url='https://github.com/mcedit/mcedit2',
license='MIT License',
packages=["mcedit2"],
package_dir={'': 'src'},
ext_modules=mcedit2_ext_modules,
include_dirs=numpy.get_include(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
mcedit2=mcedit2.main:main
""",
)