Skip to content

Commit

Permalink
Merge pull request #1358 from PyO3/interpreter-doc-string
Browse files Browse the repository at this point in the history
Clarify `--interpreter` value
  • Loading branch information
messense authored Dec 16, 2022
2 parents 968202a + 5622795 commit e0b6a74
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion guide/src/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Arguments:
Options:
-b, --bindings <BINDINGS>
Which kind of bindings to use. Possible values are pyo3, rust-cpython, cffi and bin
Which kind of bindings to use
[possible values: pyo3, pyo3-ffi, rust-cpython, cffi, uniffi, bin]
-r, --release
Pass --release to cargo
Expand Down
5 changes: 3 additions & 2 deletions guide/src/distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,16 @@ Options:
This option is ignored on all non-linux platforms
-i, --interpreter [<INTERPRETER>...]
The python versions to build wheels for, given as the names of the interpreters
The python versions to build wheels for, given as the executables of interpreters such as
`python3.9` or `/usr/bin/python3.8`
-f, --find-interpreter
Find interpreters from the host machine
-b, --bindings <BINDINGS>
Which kind of bindings to use
[possible values: pyo3, pyo3-ffi, rust-cpython, cffi, bin]
[possible values: pyo3, pyo3-ffi, rust-cpython, cffi, uniffi, bin]
-o, --out <OUT>
The directory to store the built wheels in. Defaults to a new "wheels" directory in the
Expand Down
4 changes: 2 additions & 2 deletions src/build_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ pub struct BuildOptions {
)]
pub platform_tag: Vec<PlatformTag>,

/// The python versions to build wheels for, given as the names of the
/// interpreters.
/// The python versions to build wheels for, given as the executables of
/// interpreters such as `python3.9` or `/usr/bin/python3.8`.
#[arg(short, long, num_args = 0.., action = clap::ArgAction::Append)]
pub interpreter: Vec<PathBuf>,

Expand Down
3 changes: 2 additions & 1 deletion tests/cmd/build.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Options:
This option is ignored on all non-linux platforms

-i, --interpreter [<INTERPRETER>...]
The python versions to build wheels for, given as the names of the interpreters
The python versions to build wheels for, given as the executables of interpreters such as
`python3.9` or `/usr/bin/python3.8`

-f, --find-interpreter
Find interpreters from the host machine
Expand Down
3 changes: 2 additions & 1 deletion tests/cmd/publish.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ Options:
This option is ignored on all non-linux platforms

-i, --interpreter [<INTERPRETER>...]
The python versions to build wheels for, given as the names of the interpreters
The python versions to build wheels for, given as the executables of interpreters such as
`python3.9` or `/usr/bin/python3.8`

-f, --find-interpreter
Find interpreters from the host machine
Expand Down

0 comments on commit e0b6a74

Please sign in to comment.