Issue1720

classification
Title: Support environment variable flags
Type: Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: Nosy List: amak, fwierzbicki, jeff.allen, pjenvey, zyasoft
Priority: normal Keywords:

Created on 2011-03-19.20:05:29 by pjenvey, last changed 2018-03-07.19:34:42 by jeff.allen.

Messages
msg6442 (view) Author: Philip Jenvey (pjenvey) Date: 2011-03-19.20:05:28
Historically we didn't support things like PYTHONPATH because Java completely discouraged use of environment variables. They are obviously useful, however, and we do support JYTHONPATH now. We should add support for env vars for all the command line options, like PYTHONUSERSITE, PYTHONIOENCODING, etc. I suppose they would be JYTHONUSERSITE
msg6871 (view) Author: Alan Kennedy (amak) Date: 2012-03-19.20:50:28
Copied from issue #1263813

"""
I'd like an option similar to CPython's $PYTHONSTARTUP.
By analogy to $PYTHONPATH -> -Dpython.path, the logical
choice is a system property "python.startup".
"""
msg8542 (view) Author: Jim Baker (zyasoft) Date: 2014-05-22.01:30:26
Should revisit in light of support of PYTHONIOENCODING etc
msg9961 (view) Author: Jim Baker (zyasoft) Date: 2015-04-25.20:13:39
Consider also supporting PYTHONPATH for Jython, in addition to JYTHONPATH, even if site-packages makes this less important. If so, we should also add some sort of compatibility setting. pyenv, virtualenv, and similar tools are the right way to isolate Python implementations. Likewise -E is helpful too.

Also, all environment variables should have property correspondence per what Alan suggested in msg6871
msg10572 (view) Author: Jim Baker (zyasoft) Date: 2015-12-29.23:51:22
Probably requires discussion on jython-dev
msg11762 (view) Author: Jeff Allen (jeff.allen) Date: 2018-03-07.19:34:42
Go ahead.

We're not consistent about PYTHON* vs. JYTHON* names in the environment. I don't think we'll achieve clarity before 2.7.2, however.
History
Date User Action Args
2018-03-07 19:34:42jeff.allensetnosy: + jeff.allen
messages: + msg11762
milestone: Jython 2.7.2 ->
2015-12-29 23:51:22zyasoftsetmessages: + msg10572
milestone: Jython 2.7.1 -> Jython 2.7.2
2015-04-25 20:13:39zyasoftsetmessages: + msg9961
milestone: Jython 2.7.1
2014-05-22 01:30:26zyasoftsetnosy: + zyasoft
messages: + msg8542
2013-02-27 17:58:12fwierzbickisetpriority: normal
resolution: remind
versions: + Jython 2.7
2012-03-19 21:22:47fwierzbickisetnosy: + fwierzbicki
2012-03-19 20:50:28amaksetnosy: + amak
messages: + msg6871
2011-03-19 20:05:29pjenveycreate