Skip to content

Commit 07a55b0

Browse files
kaosWorkerPants
authored andcommitted
doc: tweaks. (#20557)
1 parent 8f5744f commit 07a55b0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/docs/python/overview/pex.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ In these cases you can override the default shebang using the [`shebang`](../../
8787

8888
Pants makes use of the [Pex](https://github.com/pex-tool/pex) command-line tool internally for building PEXes. The Pex version that Pants uses is specified by the `version` option under the `pex-cli` subsystem. The known Pex versions are specified by the `known_versions` option under the `pex-cli` subsystem. You can see all Pex tool options and their current values by running `pants help-advanced pex-cli`. To upgrade the Pex version, update these option values accordingly. For instance, in `pants.toml`, to upgrade to Pex 2.1.143:
8989

90-
```[pex-cli]
90+
```
91+
[pex-cli]
9192
version = "v2.1.143"
9293
known_versions = [
9394
"v2.1.143|macos_arm64|7dba8776000b4f75bc9af850cb65b2dc7720ea211733e8cb5243c0b210ef3c19|4194291",
@@ -101,6 +102,7 @@ The Pex version determines which Pip versions are supported. To see the lists of
101102

102103
The Pip version that Pex uses is determined by the `pip_version` option in Pants. To upgrade the Pip version, update this option value accordingly. For instance, in `pants.toml`, to set the Pip version to be the latest supported by Pex:
103104

104-
```[python]
105+
```
106+
[python]
105107
pip_version = "latest"
106108
```

docs/docs/using-pants/key-concepts/options.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ repo_host = "repo.%(domain)s"
105105
indexes.add = ["https://%(env.PY_REPO)s@%(repo_host)s/index"]
106106
```
107107

108-
Learn more about exporting environment variables in the
109-
[`.pants.bootstrap`](../using-pants/key-concepts/options.mdx#pantsbootstrap-file)) Bash script that is sourced
110-
before Pants runs.
108+
Learn more about exporting environment variables in the [`.pants.bootstrap`](#pantsbootstrap-file))
109+
Bash script that is sourced before Pants runs.
111110

112111
## Option types
113112

0 commit comments

Comments
 (0)