HomeDocs
DocsCommunityTestimonialsUsersGitHubTwitterBlogJobsTermsPrivacyCookies
TermsPrivacyCookies
Hey! These docs are for version 2.13, which is no longer officially supported. Click here for the latest version, 2.17!


How Pants uses Pex to run Python subprocesses.

Backend: <span style="color: purple"><code>pants.core</code></span> Config section: <span style="color: purple"><code>[pex]</code></span>

## Basic options

None

## Advanced options

<div style="color: purple">

### `executable_search_paths`

<code>--pex-executable-search-paths="[&lt;binary-paths&gt;, &lt;binary-paths&gt;, ...]"</code><br> <code>PANTS_PEX_EXECUTABLE_SEARCH_PATHS</code><br>

</div> <div style="padding-left: 2em;"> <span style="color: green">default: <pre>[ "&lt;PATH&gt;" ]</pre></span>

<br>

The PATH value that will be used by the PEX subprocess and any subprocesses it spawns.

The special string `"<PATH>"` will expand to the contents of the PATH env var.

</div> <br>

<div style="color: purple">

### `verbosity`

<code>--pex-verbosity=<int></code><br> <code>PANTS_PEX_VERBOSITY</code><br>

</div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>0</code></span>

<br>

Set the verbosity level of PEX logging, from 0 (no logging) up to 9 (max logging).

</div> <br>

<div style="color: purple">

### `venv_use_symlinks`

<code>--[no-]pex-venv-use-symlinks</code><br> <code>PANTS_PEX_VENV_USE_SYMLINKS</code><br>

</div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>False</code></span>

<br>

When possible, use venvs whose site-packages directories are populated with symlinks.

Enabling this can save space in the `--named-caches-dir` directory and lead to slightly faster execution times for Pants Python goals. Some distributions do not work with symlinked venvs though, so you may not be able to enable this optimization as a result.

</div> <br>

## Deprecated options

None