-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
executable file
·78 lines (61 loc) · 2.34 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
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
# Copyright (C) 2014-2017 Music Technology Group - Universitat Pompeu Fabra
#
# This file is part of AlignmentDuration: tool for Lyrics-to-audio alignment with syllable duration modeling
#
# AlignmentDuration is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation (FSF), either version 3 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the Affero GNU General Public License
# version 3 along with this program. If not, see http://www.gnu.org/licenses/
'''
Created on Jan 15, 2016
@author: joro
'''
#!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools import Extension
import os
import numpy as np
try:
from distutils.command.build_py import build_py_2to3 \
as build_py
except ImportError:
from distutils.command.build_py import build_py
from Cython.Distutils import build_ext
# py_inc = [get_python_inc()]
#
# np_lib = os.path.dirname(numpy.__file__)
# np_inc = [os.path.join(np_lib, 'core/include')]
# ext_inc = os
pathSmsTools = 'smstools/software/models/utilFunctions_C/'
sourcefiles = [pathSmsTools + 'utilFunctions.c', pathSmsTools + 'cutilFunctions.pyx']
ext_modules = [Extension("smstools.software.models.utilFunctions_C",
sourcefiles,
libraries=['m'],
include_dirs=[np.get_include()]
)]
generalDependencies = ['setuptools-git', 'numpy', 'cython']
# dependencies of hmm package dir
hmmDependencies = ['scipy', 'matplotlib']
generalDependencies.extend(hmmDependencies)
setup(name='lyrics-align',
version='0.1',
description='alignment of lyrics using duration modeling',
author='Georgi Dzhambazov',
url='',
# packages=['align', 'align.model' ,'hmm', 'hmm.continuous', 'test']
packages=find_packages(),
package_data={'align': ['models_makam/hmmdefs9gmm9iter']},
include_package_data=True,
install_requires=generalDependencies,
# cython dependencies
cmdclass = {'build_ext': build_ext},
ext_modules=ext_modules
)