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

acceptable-guitar-79854

09/13/2020, 12:44 PM
Question number 2 is: requirements.txt/constraints.txt contains packages which in total add up to 5GB which is a bit too dangerous for /tmp/ is there a way this can be configured? I tried setting
Copy code
[GLOBAL]
local_execution_root_dir = '...'
but this doesn't change
--dest
in the command above
h

hundreds-father-404

09/13/2020, 3:51 PM
Check out https://www.pantsbuild.org/v2.0/docs/troubleshooting#out-of-space-error-set-an-alternative-tmpdir Also, make sure you have set up a constraints.txt file. This is super important for performance to avoid resolving requirements more than one time. https://www.pantsbuild.org/v2.0/docs/python-third-party-dependencies
Also woah to 5 GB. Do you know what’s causing it to be so huge?
Oh wait sorry, saw you already tried that option. Hm
a

acceptable-guitar-79854

09/13/2020, 3:56 PM
Yes, I have a constraints.txt.
There are just many many packages
first thing i need to sort is installing packages from the internal source, but I anticipated this as the next problem
on the big monorepo everyone uses the same giant virtual environment
That's actually how I started using bazel. A requirement in the giant virtual environment was missing an extra (pip install pkg[extra]) and functions in a totally unrelated library were entering an infinite loop 🙈
e

enough-analyst-54434

09/13/2020, 5:05 PM
@acceptable-guitar-79854 re the OP - there is currently no workaround for setting
--dest
but I've filed a bug here to track a fix: https://github.com/pantsbuild/pants/issues/10771
a

acceptable-guitar-79854

09/13/2020, 5:06 PM
Thank you @enough-analyst-54434, as i said in a different thread, i really appreciate your efforts. you guys do a top job!! there is no pressure from my part. thanks again
e

enough-analyst-54434

09/13/2020, 5:11 PM
No worries. I have a very strange work schedule and this is a weekday for me.
💪 1
h

hundreds-father-404

09/13/2020, 7:51 PM
a

acceptable-guitar-79854

09/14/2020, 5:09 PM
thank you @hundreds-father-404 and @enough-analyst-54434
❤️ 1
4 Views