-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (25 loc) · 794 Bytes
/
setup.py
File metadata and controls
30 lines (25 loc) · 794 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
30
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
import build
this_file = os.path.dirname(__file__)
setup(
name="torchain",
version="0.6",
description="Kaldi's chain binding for PyTorch",
url="http://kishin-gitlab.cslab.kecl.ntt.co.jp/karita/torchain",
author="Shigeki Karita",
author_email="karita.shigeki@lab.ntt.co.jp",
# Require cffi.
install_requires=["cffi>=1.0.0", "torch>=0.3.1"],
setup_requires=["cffi>=1.0.0", "torch>=0.3.1"],
# Exclude the build files.
packages=find_packages(exclude=["build"]),
# Package where to put the extensions. Has to be a prefix of build.py.
ext_package="",
# Extensions to compile.
cffi_modules=[
os.path.join(this_file, "build.py:ffi")
],
)