Skip to content

Commit ddf16e6

Browse files
committed
Add pyproject.toml with build-requires torch
1 parent 930672d commit ddf16e6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

+1-3
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

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel", "torch"]

requirements.txt

-1
This file was deleted.

setup.py

+1
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)