bland-soccer-72046
01/11/2023, 2:40 PMpysocks
library in the venv used by Pants
(likely here /home/circleci/.cache/pants/setup/bootstrap-Linux-x86_64/2.14.0_py38/lib/python3.8/site-packages
)
Pip needs that library to retrieve packages, hence I have the error.
Looking in indexes: <https://pypi.org/simple/>, <https://admin>:****@python-index.xxxxx.fr/simple/
ERROR: Could not install packages due to an EnvironmentError: Missing dependencies for SOCKS support.
I installed pysocks
at system venv (with pip), this is working as expected, but not while running Pants.
➡️ Can you tell me how I can add a library to the venv used by pants ?
Thank you very much for your help.curved-television-6568
01/11/2023, 3:01 PM[GLOBAL].plugins
in your `pants.toml`: https://www.pantsbuild.org/docs/reference-global#plugins (doesn’t have to be just pants plugins..)
However, if it is PEX
that is installing, this may not be enough, and I’ll have to defer how to address that.. 🙂bland-soccer-72046
01/11/2023, 3:07 PMpysocks
is provided in no backend_packages in the documentation
backend_packages = [
"pants.backend.python",
"pants.backend.python.lint.black",
"pants.backend.python.lint.flake8",
"pants.backend.python.lint.pylint",
"pants.backend.python.typecheck.mypy
So if I’d like to add pysocks
I should just add "pysocks"
to that array ?curved-television-6568
01/11/2023, 3:13 PMbackend_packages
but to plugins
.bland-soccer-72046
01/11/2023, 3:14 PMenough-analyst-54434
01/11/2023, 3:29 PM~/.cache/pants/setup/...
, that Pants bootstrap is controlled by the ./pants
script and knows almost nothing of pants.toml
save for the pants_version
.