https://pantsbuild.org/ logo
#general
Title
# general
n

nice-florist-55958

11/11/2021, 11:54 PM
Hi. We have been looking into using Pants for a multi-project python repo at the firm I work for. The hosts that would run Pants do not have access to the internet, but we were able to get Pants fully installed and bootstrapped after redirecting it to our internal Artifactory and ran tailor on our proof of concept repo to generate BUILD files. However, when trying to lint (or run any goals really), we are running into issues with Pants trying to download things directly (instead of using redirected pip/PyPI). See screnshot where it tries to (update?) pex when running ./pants lint with mypy and black backends configured.
h

hundreds-father-404

11/12/2021, 12:45 AM
Hello! Welcome. Check out https://www.pantsbuild.org/docs/proxies
e

enough-analyst-54434

11/12/2021, 1:24 AM
If you are using a proxy, then what Eric said is the way to go. If you are pointing at artifactory directly though as an alternate PyPI, you need to configure
[pants-repos]
in
pants.toml
Have you done that?: https://www.pantsbuild.org/docs/reference-python-repos
n

nice-florist-55958

11/12/2021, 1:53 AM
Hi sorry, this was meant to be all part of the same 2nd question below. We succeeded in getting Pants to work w/ internetal Artifactory, but then it wanted to download specific artifacts directly from Github (pex, etc.) even though they were already installed in the virtual environment.
e

enough-analyst-54434

11/12/2021, 1:54 AM
Gotcha. I'll let our discussion continue in that thread then.
4 Views