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


How Pants uses Pex to run Python subprocesses.

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

## Basic options

None

## Advanced options

<div style="color: purple"> <h3><code>executable_search_paths</code></h3> <code>--pex-executable-search-paths=&quot;[&lt;binary-paths&gt;, &lt;binary-paths&gt;, ...]&quot;</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"> <h3><code>bootstrap_interpreter_names</code></h3> <code>--pex-bootstrap-interpreter-names=&quot;[&lt;bootstrap-python-names&gt;, &lt;bootstrap-python-names&gt;, ...]&quot;</code><br> <code>PANTS_PEX_BOOTSTRAP_INTERPRETER_NAMES</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <pre>[ "python", "python3", "python2" ]</pre></span>

<br>

The names of Python binaries to search for to bootstrap PEX files with.

This does not impact which Python interpreter is used to run your code, only what is used to run the PEX tool. See the `interpreter_search_paths` option in `[python]` to influence where interpreters are searched for.

</div> <br>

<div style="color: purple"> <h3><code>verbosity</code></h3> <code>--pex-verbosity=&lt;int&gt;</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>

## Deprecated options

None