-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
50 lines (41 loc) · 1.27 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
# -*- coding: utf-8 -*-
'''abnet3: Siamese Neural Network for speech
Note that "python setup.py test" invokes pytest on the package. With
appropriately configured setup.cfg, this will check both xxx_test
modules and docstrings.
Copyright 2017, Rachid Riad, LSCP
Licensed under GPLv3.
'''
from setuptools import setup, find_packages
from setuptools.command.install import install
import sys
import io
import subprocess
class RequiredPackagedInstall(install):
""" Install needed Github repositories"""
def run(self):
""" Get DTW_Cython, H5features & Spectral
from github.com/bootphon, by launching pip via
subprocess
"""
# run ABnet3 package installation
install.run(self)
with io.open("requirements.txt", encoding="utf-8") as req_fp:
install_requires = req_fp.readlines()
setup(
name='abnet3',
version='0.0.1',
packages=['abnet3'],
description='ABnet neural network in Pytorch',
author='Rachid Riad',
license='GPLv3',
cmdclass={
'install': RequiredPackagedInstall,
},
entry_points={'console_scripts': [
'abnet3-gridsearch = abnet3.gridsearch:main',
'abnet3-embed = abnet3.tools.embed_cli:main',
'abnet3-features = abnet3.features:main',
]}
)