-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
38 lines (36 loc) · 1.1 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
# 2019-12
# github.com/ludlows
# Lite Python Package for Room Impulse Response
import numpy
from setuptools import find_packages
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import build_ext,cythonize
with open("README.md", "r") as fh:
long_description = fh.read()
extensions = [
Extension(
"pyrir.cyrir.cyrir",
["pyrir/cyrir/cyrir.pyx"],
include_dirs=[numpy.get_include()],
language="c")
]
setup(
name="pyrir",
version="0.0.1",
author="ludlows",
description="Lite Package for Room Impulse Response",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ludlows/pyrir",
packages=find_packages(),
package_data={'pyrir':["cyrir/cyrir.pyx", "cyrir/rir.c"]},
cmdclass = {'build_ext': build_ext},
ext_modules=cythonize(extensions),
setup_requires=['numpy', 'scipy', 'cython'],
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
)