Skip to content

Commit c246f00

Browse files
committed
Add pyproject.tmol with build-requires torch
1 parent c90ad94 commit c246f00

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ KenLM language modeling support is also optionally included, and enabled by defa
1212
The below installation also works for Google Colab.
1313

1414
```bash
15-
# get the code
16-
git clone --recursive https://github.com/parlance/ctcdecode.git
17-
cd ctcdecode && pip install .
15+
pip install git+https://github.com/parlance/ctcdecode.git
1816
```
1917

2018
## How to Use

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel", "torch"]

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,5 @@ def _single_compile(obj):
140140
packages=find_packages(exclude=["build"]),
141141
ext_modules=[extension],
142142
cmdclass={"build_ext": BuildExtension},
143+
install_requires=["torch"],
143144
)

0 commit comments

Comments
 (0)