Skip to content

Commit

Permalink
Add MACOSX_DEPLOYMENT_TARGET to the --python-platform documentati…
Browse files Browse the repository at this point in the history
…on (#10698)
  • Loading branch information
zanieb authored Jan 17, 2025
1 parent d5b98fb commit 48140fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,9 @@ pub struct PipCompileArgs {
/// Represented as a "target triple", a string that describes the target platform in terms of
/// its CPU, vendor, and operating system name, like `x86_64-unknown-linux-gnu` or
/// `aarch64-apple-darwin`.
///
/// When targetting macOS (Darwin), the default minimum version is `12.0`. Use

Check warning on line 1188 in crates/uv-cli/src/lib.rs

View workflow job for this annotation

GitHub Actions / typos

"targetting" should be "targeting".
/// `MACOSX_DEPLOYMENT_TARGET` to specify a different minimum version, e.g., `13.0`.
#[arg(long)]
pub python_platform: Option<TargetTriple>,

Expand Down Expand Up @@ -1472,6 +1475,9 @@ pub struct PipSyncArgs {
/// its CPU, vendor, and operating system name, like `x86_64-unknown-linux-gnu` or
/// `aarch64-apple-darwin`.
///
/// When targetting macOS (Darwin), the default minimum version is `12.0`. Use

Check warning on line 1478 in crates/uv-cli/src/lib.rs

View workflow job for this annotation

GitHub Actions / typos

"targetting" should be "targeting".
/// `MACOSX_DEPLOYMENT_TARGET` to specify a different minimum version, e.g., `13.0`.
///
/// WARNING: When specified, uv will select wheels that are compatible with the _target_
/// platform; as a result, the installed distributions may not be compatible with the _current_
/// platform. Conversely, any distributions that are built from source may be incompatible with
Expand Down Expand Up @@ -1751,6 +1757,9 @@ pub struct PipInstallArgs {
/// its CPU, vendor, and operating system name, like `x86_64-unknown-linux-gnu` or
/// `aarch64-apple-darwin`.
///
/// When targetting macOS (Darwin), the default minimum version is `12.0`. Use

Check warning on line 1760 in crates/uv-cli/src/lib.rs

View workflow job for this annotation

GitHub Actions / typos

"targetting" should be "targeting".
/// `MACOSX_DEPLOYMENT_TARGET` to specify a different minimum version, e.g., `13.0`.
///
/// WARNING: When specified, uv will select wheels that are compatible with the _target_
/// platform; as a result, the installed distributions may not be compatible with the _current_
/// platform. Conversely, any distributions that are built from source may be incompatible with
Expand Down
6 changes: 6 additions & 0 deletions docs/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -5782,6 +5782,8 @@ uv pip compile [OPTIONS] <SRC_FILE>...

<p>Represented as a &quot;target triple&quot;, a string that describes the target platform in terms of its CPU, vendor, and operating system name, like <code>x86_64-unknown-linux-gnu</code> or <code>aarch64-apple-darwin</code>.</p>

<p>When targetting macOS (Darwin), the default minimum version is <code>12.0</code>. Use <code>MACOSX_DEPLOYMENT_TARGET</code> to specify a different minimum version, e.g., <code>13.0</code>.</p>

Check warning on line 5785 in docs/reference/cli.md

View workflow job for this annotation

GitHub Actions / typos

"targetting" should be "targeting".

<p>Possible values:</p>

<ul>
Expand Down Expand Up @@ -6185,6 +6187,8 @@ uv pip sync [OPTIONS] <SRC_FILE>...

<p>Represented as a &quot;target triple&quot;, a string that describes the target platform in terms of its CPU, vendor, and operating system name, like <code>x86_64-unknown-linux-gnu</code> or <code>aarch64-apple-darwin</code>.</p>

<p>When targetting macOS (Darwin), the default minimum version is <code>12.0</code>. Use <code>MACOSX_DEPLOYMENT_TARGET</code> to specify a different minimum version, e.g., <code>13.0</code>.</p>

Check warning on line 6190 in docs/reference/cli.md

View workflow job for this annotation

GitHub Actions / typos

"targetting" should be "targeting".

<p>WARNING: When specified, uv will select wheels that are compatible with the <em>target</em> platform; as a result, the installed distributions may not be compatible with the <em>current</em> platform. Conversely, any distributions that are built from source may be incompatible with the <em>target</em> platform, as they will be built for the <em>current</em> platform. The <code>--python-platform</code> option is intended for advanced use cases.</p>

<p>Possible values:</p>
Expand Down Expand Up @@ -6643,6 +6647,8 @@ uv pip install [OPTIONS] <PACKAGE|--requirements <REQUIREMENTS>|--editable <EDIT

<p>Represented as a &quot;target triple&quot;, a string that describes the target platform in terms of its CPU, vendor, and operating system name, like <code>x86_64-unknown-linux-gnu</code> or <code>aarch64-apple-darwin</code>.</p>

<p>When targetting macOS (Darwin), the default minimum version is <code>12.0</code>. Use <code>MACOSX_DEPLOYMENT_TARGET</code> to specify a different minimum version, e.g., <code>13.0</code>.</p>

Check warning on line 6650 in docs/reference/cli.md

View workflow job for this annotation

GitHub Actions / typos

"targetting" should be "targeting".

<p>WARNING: When specified, uv will select wheels that are compatible with the <em>target</em> platform; as a result, the installed distributions may not be compatible with the <em>current</em> platform. Conversely, any distributions that are built from source may be incompatible with the <em>target</em> platform, as they will be built for the <em>current</em> platform. The <code>--python-platform</code> option is intended for advanced use cases.</p>

<p>Possible values:</p>
Expand Down

0 comments on commit 48140fe

Please sign in to comment.