wooden-thailand-8386
09/09/2020, 1:07 PMpants
is actually getting the .whl files from the folder. What I have on my toml file is:
[python-repos]
repos.add = "%(buildroot)s/.wheels
One of the reasons I’m doing this is to try to speed up the test/bundle by not having to download any dependency from the internet (we have tensorflow and other ML libraries) and under our proxy things take forever 😞important-librarian-62877
09/09/2020, 2:34 PM./pants dependencies --type=3rdparty helloworld/util
FWIW, we have a few wheels that are picked up from a directory and this is what our toml looks like:
[python-repos]
repos = [
"%(buildroot)s/3rdparty/repos"
]
hundreds-father-404
09/09/2020, 2:39 PMhundreds-father-404
09/09/2020, 2:40 PMrepos
, which will override the default of PyPI.wooden-thailand-8386
09/09/2020, 2:45 PMnltk==3.4.5
numpy==1.19.1
python-json-logger==0.1.11
rasa==1.10.2
scipy==1.4.1
tensorflow==2.1.1
tensorflow-text==2.1.0rc0
and your approach on using repos =
instead of repos.add
made it faster.wooden-thailand-8386
09/09/2020, 2:47 PMconstraints.txt
file. For some reason it seems like it’s not using it. I always have a couple of libs breaking the build process such as:
pex.resolver.Unsatisfiable: Failed to resolve compatible distributions:
1: rasa==1.10.2 requires coloredlogs<11.0,>=10.0 but coloredlogs 14.0 was resolved
wooden-thailand-8386
09/09/2020, 2:48 PMconstraints.txt
file set.. my requirements.txt
file doesnt have everything that’s inside constraints.txt
only the libs that I add to my python_requirements
hundreds-father-404
09/09/2020, 2:55 PMwooden-thailand-8386
09/09/2020, 2:56 PMwooden-thailand-8386
09/09/2020, 2:57 PMhundreds-father-404
09/09/2020, 2:58 PMhundreds-father-404
09/09/2020, 2:59 PMwooden-thailand-8386
09/09/2020, 3:03 PMCURL_CA_BUNDLE
, REQUESTS_CA_BUNDLE
and others to point to our cert.wooden-thailand-8386
09/09/2020, 3:04 PMhundreds-father-404
09/09/2020, 3:09 PMThe thing is that Rust doesnt seem to have any env variable to fix that so.. 😞I was going to say that we can pass any arbitrary env var. But I’m not certain if Rust would recognize it. I haven’t checked. One thing that would help a lot is if you know of some way for us to simulate your proxy and test that this works. Of course, we can’t use your actual proxy, but I’m wondering if there’s some type of config we could use to simulate the environment.
wooden-thailand-8386
09/09/2020, 3:22 PMmock-server
tool that might do it. I’ll try to set up that for you.hundreds-father-404
09/09/2020, 3:29 PM