Quickly up a Rust PyO3 project with setuptools-rust.
The best way to install is with cargo
:
sh
$ cargo install pyo3-setup --locked
The executable will then be available to run anywhere.
You can also install from a cloned repository:
sh
$ cargo install --path .
To set up a new project, run pyo3-setup path/to/project
.
The project name will be inferred from the last folder in the path.
More information is available in the help menu with pyo3-setup --help
:
```text
USAGE:
pyo3-setup [FLAGS] [OPTIONS]
FLAGS: -h, --help Prints help information --non-interactive Don't require user input to confirm before using default values -V, --version Prints version information
OPTIONS:
--author
ARGS:
This project is licensed under the GNU General Public License, Version 3.0 (LICENSE or https://www.gnu.org/licenses/gpl-3.0.en.html). However, any generated files can be modified to your liking and licensed under whatever license you choose.