This repository has been archived by the owner on Apr 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
42 lines (38 loc) · 1.84 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
from os import environ
from os.path import dirname, join
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Build import cythonize
have_cython = True
except ImportError:
have_cython = False
if have_cython:
ext = cythonize("yapyg/*.pyx") + cythonize("yapyg_movers/*.pyx") + cythonize("yapyg_widgets/*.pyx")
else:
ext = [
Extension('yapyg/collisions', ['yapyg/collisions.c']),
Extension('yapyg/controls', ['yapyg/controls.c']),
Extension('yapyg/entities', ['yapyg/entities.c']),
Extension('yapyg/math_2d', ['yapyg/math_2d.c']),
Extension('yapyg/math_collision', ['yapyg/math_collision.c']),
Extension('yapyg/movers', ['yapyg/movers.c']),
Extension('yapyg/screen', ['yapyg/screen.c']),
Extension('yapyg/sprites', ['yapyg/sprites.c']),
Extension('yapyg/texture_db', ['yapyg/texture_db.c']),
Extension('yapyg/tiles', ['yapyg/tiles.c']),
Extension('yapyg/view', ['yapyg/view.c']),
Extension('yapyg_movers/control_phys_mover', ['yapyg_movers/control_phys_mover.c']),
Extension('yapyg_movers/linear_mover', ['yapyg_movers/linear_mover.c']),
Extension('yapyg_movers/physical_mover', ['yapyg_movers/physical_mover.c']),
Extension('yapyg_widgets/display_widget', ['yapyg_widgets/display_widget.c']),
]
setup( name='yapyg',
version='0.5.2',
description='Yet Another Python Game Engine',
author='Raihan Kibria',
author_email='raihan@kibria.de',
url='https://github.com/rkibria/yapyg',
packages=['yapyg', 'yapyg_helpers', 'yapyg_movers', 'yapyg_viewers', 'yapyg_widgets'],
ext_modules=ext
)