-
-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc PEX_* env vars #13
Comments
snippet from some wickman-mail To get information about the environment bootstrapping To drop into an interpreter w/ the environment bootstrapped: There's a few other environment variables you can set but those are two handy ones. |
+1 we had to dig into the code to find the way of specifying the folder where the .pex folder can be created. |
this is now more discoverable via |
I think it would also be good to add some notes about this to a doc. Two obvious candidates are the README.rst in the root of the pex repo, and this page on the pants site: http://pantsbuild.github.io/python-readme.html#manipulating-pex-behavior-with-environment-variables |
Might be a good idea to also make this available for the PEX files themselves, in the form of a '--pex--help-variables' option. I think the '--pex--' prefix thoroughly ensures there are no naming conflicts to a contained script and its options. |
@areitz's suggestion has long since been covered by the pex docs, in particular: https://docs.pex-tool.org/api/vars.html @jhermann's suggestion is a bit tricker. Although Pex does carve out PEX* env var space, as is common in tools, it carves out no command line argument space for PEX files. I'd like to keep it that way. Considering, even if PEX files did support |
A question came up on a pants-devel thread for which the answer was "use PEX_ROOT". https://groups.google.com/forum/#!topic/pants-devel/HKgKqUIUUIk . To explain it, JSirois had to link to two places: a docstring that mentions the pex_root property and the pex_root-property code that checks the env for PEX_ROOT. I dunno how often questions come up around these; if the answer is "often", then it probably makes sense to describe them in a doc somewhere.
'PEX_ALWAYS_CACHE'
'PEX_COVERAGE'
'PEX_FORCE_LOCAL'
'PEX_INHERIT_PATH'
'PEX_INTERPRETER'
'PEX_MODULE'
'PEX_PROFILE'
'PEX_PROFILE_ENTRIES'
'PEX_PROFILE_SORT'
'PEX_ROOT'
'PEX_TEARDOWN_VERBOSE'
'PEX_VERBOSE'
The text was updated successfully, but these errors were encountered: