-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (31 loc) · 1.63 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
##############################################################################
# Copyright 2015 SoundHound, Incorporated. All rights reserved.
##############################################################################
from setuptools import setup, Extension
SPEEX_SRC_DIR = "pySHSpeex/soundhound-speex"
SOURCES = "cb_search.c exc_10_32_table.c exc_8_128_table.c filters.c gain_table.c hexc_table.c high_lsp_tables.c " \
"lsp.c ltp.c speex.c stereo.c vbr.c vq.c bits.c exc_10_16_table.c exc_20_32_table.c exc_5_256_table.c " \
"exc_5_64_table.c gain_table_lbr.c hexc_10_32_table.c lpc.c lsp_tables_nb.c modes.c modes_wb.c nb_celp.c " \
"quant_lsp.c sb_celp.c speex_callbacks.c speex_header.c window.c soundhound.c "
SOURCES = [SPEEX_SRC_DIR + "/src/%s" % x for x in SOURCES.split()]
ext_modules = [Extension('pySHSpeex',
sources=['pySHSpeex/pySHSpeexmodule.c'] + SOURCES,
include_dirs=[SPEEX_SRC_DIR + '/include'],
define_macros=[('FIXED_POINT', '1')])]
setup(name='Houndify',
packages=['houndify'],
ext_modules=ext_modules,
version='2.0.1',
license='MIT',
description='Houndify libraries and SoundHound speex encoder',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Soundhound Inc.',
maintainer='Oliver Yeun',
url='https://github.com/oyeun/houndify',
download_url='https://github.com/oyeun/houndify/archive/2.0.1.tar.gz',
keywords=['houndify'],
classifiers=[
'Programming Language :: Python :: 3'
]
)