pex
How Pants uses Pex to run Python subprocesses.
Backend: ``
Config section: [pex]
Basic options
None
Advanced options
executable_search_paths
--pex-executable-search-paths="[<binary-paths>, <binary-paths>, ...]"
PANTS_PEX_EXECUTABLE_SEARCH_PATHS
[pex]
executable_search_paths = [
<binary-paths>,
<binary-paths>,
...,
]
[ "<PATH>" ]
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.
venv_use_symlinks
--[no-]pex-venv-use-symlinks
PANTS_PEX_VENV_USE_SYMLINKS
[pex]
venv_use_symlinks = <bool>
False
When possible, use venvs whose site-packages directories are populated withsymlinks.
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.
verbosity
--pex-verbosity=<int>
PANTS_PEX_VERBOSITY
[pex]
verbosity = <int>
0
Set the verbosity level of PEX logging, from 0 (no logging) up to 9 (max logging).
Deprecated options
bootstrap_interpreter_names
--pex-bootstrap-interpreter-names="[<bootstrap-python-names>, <bootstrap-python-names>, ...]"
PANTS_PEX_BOOTSTRAP_INTERPRETER_NAMES
[pex]
bootstrap_interpreter_names = [
<bootstrap-python-names>,
<bootstrap-python-names>,
...,
]
[ "python", "python3", "python2" ]
Deprecated, will be removed in version: 2.10.0.dev0.
Moved to `[python-bootstrap] names`.
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.
Related subsystems
None