Skip to content

Commit

Permalink
Add pyproject.toml with build-requires torch
Browse files Browse the repository at this point in the history
  • Loading branch information
anth2o committed Nov 8, 2022
1 parent 930672d commit ddf16e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ KenLM language modeling support is also optionally included, and enabled by defa
The below installation also works for Google Colab.

```bash
# get the code
git clone --recursive https://github.com/parlance/ctcdecode.git
cd ctcdecode && pip install .
pip install git+https://github.com/parlance/ctcdecode.git
```

## How to Use
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build-system]
requires = ["setuptools", "wheel", "torch"]
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@ def _single_compile(obj):
packages=find_packages(exclude=["build"]),
ext_modules=[extension],
cmdclass={"build_ext": BuildExtension},
install_requires=["torch"],
)

0 comments on commit ddf16e6

Please sign in to comment.