allow adding to pythonpath via pant.ini
Review Request #1457 - Created Dec. 10, 2014 and submitted
|jsirois, patricklaw, zundel|
Looks like this used to work, based on a comment (recently removed) that said:""" To add additional paths to sys.path, add a block to the config similar to the following: roots: ['src/python/pants_internal/test/',] """
The provides an alternative to
PYTOHNPATH=custom/pants/stuff ./pants goal ...when using
an in-repo custom register.py.
Note that this is unrelated to plugins distributed as dists and installed in the (virtual)env
from which pants is run / loaded with pkg_resources, or source backends packaged into a custom
dist or pex of pants.
This change restores that functionality, though it is now called
python-pathfor clarity and
lives in the
Is this a stop-gap? If so a TODO/linked issue to replace with the final would be good.
For example, it seems to me the final plugin solution might be spelled like so:
Aka - just a list of sdists for pants startup to ensure are fetched (or built) and on the pythonpath.
rebase to master (old callsite moved to goalrunner) and expand on commit message.
Revision 2 (+5)