-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup_project.py
More file actions
29 lines (24 loc) · 850 Bytes
/
setup_project.py
File metadata and controls
29 lines (24 loc) · 850 Bytes
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
# encoding: utf-8
# 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
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
warnings.filterwarnings("ignore", category=FutureWarning)
ext_modules = [Extension("SoundEffectLib", ["SoundEffectLib.pyx"],
include_dirs=[numpy.get_include()], language="c++"),
]
#
# ext_modules = [
# Extension("FadeEffect", ["FadeEffect.pyx"], include_dirs=[numpy.get_include()]),
# Extension("Validation", ["Validation.pyx"], include_dirs=[numpy.get_include()])
# ]
setup(
name="SoundServer",
cmdclass={"build_ext": build_ext},
ext_modules=ext_modules
)