Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ webpage, so you need an Internet connection and all OpenFst dependencies.
Essentially, you will need:

- A C++ compiler supporting C++11 (tested with GCC 4.9).
- [Automake](https://www.gnu.org/software/automake/)
- [PatchELF](https://nixos.org/patchelf.html).
- [Zlib development](https://zlib.net/).
- [Python Requests](http://docs.python-requests.org).
Expand All @@ -36,7 +37,7 @@ pip install openfst-python
Alternatively, if you are installing from sources, you can simply do:

```bash
python setup.py install
pip install .
```

Notice that this downloads the appropriate version of OpenFst directly from
Expand Down
6 changes: 3 additions & 3 deletions create_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ for py in cp27-cp27mu cp35-cp35m cp36-cp36m cp37-cp37m; do
export PYTHON=/opt/python/$py/bin/python;
echo "=== Installing dependencies for $py ===";
$PYTHON -m pip install -U pip;
$PYTHON -m pip install -U requests wheel setuptools;
$PYTHON -m pip install -U wheel setuptools build;
echo "=== Building for $py ==="
$PYTHON setup.py clean;
$PYTHON setup.py bdist_wheel;
rm -rf build dist *.egg-info
$PYTHON -m build --wheel;
echo "=== Installing for $py ===";
cd /tmp;
$PYTHON -m pip uninstall -y openfst_python;
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "Cython", "requests"]
build-backend = "setuptools.build_meta"