/
setup.py
31 lines (28 loc) · 981 Bytes
/
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
from setuptools import setup, Extension
setup(
name='py2d',
version='0.1',
description='Py2D library of 2D-game-related algorithms',
url='http://www.github.com/sseemayer/py2d',
author='Stefan Seemayer',
author_email='mail@semicolonsoftware.de',
packages=['py2d', 'py2d.Math'],
setup_requires=[
# Setuptools 18.0 properly handles Cython extensions.
'setuptools>=18.0',
'wheel',
'cython',
],
ext_modules = [
Extension("py2d.Bezier", ["py2d/Bezier.py"]),
Extension("py2d.FOV", ["py2d/FOV.py"]),
Extension("py2d.FOVConverter", ["py2d/FOVConverter.py"]),
Extension("py2d.Navigation", ["py2d/Navigation.py"]),
Extension("py2d.SVG", ["py2d/SVG.py"]),
Extension("py2d.Math", ["py2d/Math/__init__.py"]),
Extension("py2d.Math.Operations", ["py2d/Math/Operations.py"]),
Extension("py2d.Math.Polygon", ["py2d/Math/Polygon.py"]),
Extension("py2d.Math.Transform", ["py2d/Math/Transform.py"]),
Extension("py2d.Math.Vector", ["py2d/Math/Vector.py"]),
]
)