aloof-angle-91616
08/18/2018, 2:56 PM./pants run <target...>
to have access to the pants environment? this excerpt from above: pkg_resources.VersionConflict: (pycodestyle 2.4.0 (/home/cosmicexplorer/tools/pants/build-support/pants_dev_deps.venv/lib/python2.7/site-packages), Requirement.parse('pycodestyle<2.4.0,>=2.0.0'))
seems to imply the pants venv is interacting with the PYTHONPATH
exposed to python binaries? because the target src/python/pants/util:s3_log_aggregator_bin
i think shouldn't be getting anything from the pants venv? i could be way mistaken. in fact, that's probably wrong in that that python binary target depends on 3rdparty/python:future
, which is in requirements.txt
and therefore probably taken from the pants venv intentionally (an except of the BUILD file): python_library(
name = 's3_log_aggregator',
sources = ['s3_log_aggregator.py'],
dependencies = [
'3rdparty/python:future',
'3rdparty/python:s3logparse'
]
)
python_binary(
name = 's3_log_aggregator_bin',
entry_point = 'pants.util.s3_log_aggregator',
dependencies = [
':s3_log_aggregator'
]
)
enough-analyst-54434
08/21/2018, 4:51 PMenough-analyst-54434
08/21/2018, 4:53 PM