Skip to content

Commit ddeedb5

Browse files
authored
Merge pull request #14 from gfinol/update-docs
Update python bindings instructions
2 parents fe6818c + 39ee850 commit ddeedb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PythonBinding.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66
1. Ensure `cargo build` works fine.
77
2. There are two ways of running generating bindings. This describes the steps where maturin is manually installed.
8-
- Manually install [maturin](https://github.com/PyO3/maturin) via `pip install maturin`
9-
- `maturin build --release --no-sdist --strip --manylinux off` This command auto detects the python interpreter and uses it. To
8+
- Manually install [maturin](https://github.com/PyO3/maturin) via `pip install maturin==0.14`
9+
- `maturin build --release --strip --manylinux off` This command auto detects the python interpreter and uses it. To
1010
specify a specific interpreter using `--interpreter` option.
1111
- `maturin sdist` to generate the source distribution.
1212
3. Steps to generate bindings using a docker approach.
13-
- `docker run --rm -v --release --no-sdist --strip --manylinux off`
13+
- `docker run --rm -v --release --strip --manylinux off`
1414
4. After the bindings are generated by either 2 or 3 the next step is to publish the artifacts.
1515
- The artifacts can be published via [twine](https://github.com/pypa/twine)
1616
- `pip install twine`
1717
- `twine upload -r testpypi target/*` this command uploads the artifacts to test.pypi
1818
- `twine upload target/*` this command uploads the artifacts to pypi.
1919
- The artifacts can be published via [maturin](https://github.com/PyO3/maturin)
2020
- `maturin publish -b pyo3 -p XXX -u YYY -r https://test.pypi.org/legacy/` this publishes the bindings to test.pypi
21-
- `maturin publish -b pyo3 -p XXX -u YYY` This publishes the bindings to pypi.
21+
- `maturin publish -b pyo3 -p XXX -u YYY` This publishes the bindings to pypi.

0 commit comments

Comments
 (0)