-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·50 lines (44 loc) · 1.35 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
#!/usr/bin/env python3
import os
import platform
from setuptools import find_packages, setup, Extension
from Cython.Build import cythonize
from Cython.Compiler import Options
Options.fast_fail = True
if __name__ == "__main__":
ECA = []
if platform.system() == "Windows":
if "64" in os.environ["PROCESSOR_ARCHITECTURE"]:
ECA = ["-DMS_WIN64"]
extensions = [
Extension(
name = "pyday_night_funkin.core.stb_vorbis.stb_vorbis",
sources = ["pyday_night_funkin/core/stb_vorbis/stb_vorbis.pyx"],
extra_compile_args = ECA,
),
Extension(
name = "pyday_night_funkin.core.almost_xml_parser.almost_xml_parser",
sources = ["pyday_night_funkin/core/almost_xml_parser/almost_xml_parser.pyx"],
extra_compile_args = ECA,
),
Extension(
name = "pyday_night_funkin.core.graphics.allocation",
sources = ["pyday_night_funkin/core/graphics/allocation.pyx"],
extra_compile_args = ECA,
),
Extension(
name = "pyday_night_funkin.core.graphics.cygl.gl",
sources = ["pyday_night_funkin/core/graphics/cygl/gl.pyx"],
extra_compile_args = ECA,
),
Extension(
name = "pyday_night_funkin.core.graphics.vertexbuffer",
sources = ["pyday_night_funkin/core/graphics/vertexbuffer.pyx"],
extra_compile_args = ECA,
),
]
setup(
name = "PydayNightFunkin",
packages = find_packages(),
ext_modules = cythonize(extensions, language_level=3),
)