-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_Project.py
89 lines (77 loc) · 3.28 KB
/
setup_Project.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
89
# distutils: extra_compile_args = -fopenmp
# distutils: extra_link_args = -fopenmp
# USE :
# python setup_Project.py build_ext --inplace
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
from Cython.Compiler.Main import default_options
ext_modules = [
Extension("BLOOM", ["BLOOM.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("Sprites", ["Sprites.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("Constants", ["Constants.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("SoundServer", ["SoundServer.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("Textures", ["Textures.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("Sounds", ["Sounds.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("PlayerClass", ["PlayerClass.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("BindSprites", ["BindSprites.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("SpriteSheet", ["SpriteSheet.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("EnemyBossClass", ["EnemyBossClass.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("Halo", ["Halo.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("HSV", ["hsv.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("Surface_tools", ["Surface_tools.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("rand", ["rand.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp']),
Extension("xml_parsing", ["XML_parsing.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['/openmp'],
extra_link_args=['/openmp'])
]
setup(
name="HOMING_MISSILE",
cmdclass={"build_ext": build_ext},
ext_modules=ext_modules,
include_dirs=[numpy.get_include()]
)