Things have gotten better since I moved everything...
# general
r
Things have gotten better since I moved everything to a single
python_requirements
target. The one thing that seems to linger though is that certain transitive 3rd party deps aren't picked up. As of now it seems like the
mock
dependency isn't pulling in a transitive dependency on
setuptools
, so tests that use
mock
fail like:
Copy code
import mock.mock as _mock
/Users/navneeth.jayendran/.cache/pants/named_caches/pex_root/venvs/s/1dd3906e/venv/lib/python3.7/site-packages/mock/mock.py:69: in <module>
    from pbr.version import VersionInfo
/Users/navneeth.jayendran/.cache/pants/named_caches/pex_root/venvs/s/1dd3906e/venv/lib/python3.7/site-packages/pbr/version.py:25: in <module>
    import pkg_resources
E   ModuleNotFoundError: No module named 'pkg_resources'
Manually including
setuptools
in the
dependencies
field of those tests fixes it, although it's not so nice. Also note I'm including
setuptools
in a different
python_requirement
from the main
python_requirements
I'm using, although these two don't overlap at all so there's never no ambiguity problems.
1