Refactor setting of PYTHONPATH in pants.ini

Review Request #1586 - Created Jan. 9, 2015 and submitted

Information
Eric Ayers
pants
zundel/move-python-path-to-bootstrap-options
922
5fd5894...
Reviewers
pants-reviews
benjyw, davidt

David Taylor recently added the ability to set pythonpath in pants.ini.
This change was made to document the setting. Unfortunately, the previous
name was hyphenated, and the new options system would translate that into an
underscore automatically. I removed the separator to simplify this, plus
it should be easier to remember as PYTHONPATH in the environment doesn't
have a separator anyway. Bootstrap options seemed to be the right place
for this option anyway - it has to be read right away.

We have local backends that require setting PYTHONPATH.

unset PYTHONPATH
PANTS_DEV=1 ~/Src/pants/pants compile foo --pythonpath=./squarepants/src/main/python 

now works.

David Taylor
Patrick Lawson
Benjy Weinberger
Eric Ayers
Review request changed

Status: Closed (submitted)

Change Summary:

commit e40de9b

Loading...