plain-carpet-73994
05/01/2021, 12:59 AM~/.cache/python/setup
directory but on each build I see the ./pants
script re-downloading pants and re-installing the associated pip packages. Am I doing something wrong?hundreds-father-404
05/01/2021, 1:07 AM~/.cache/pants/setup
but otherwise that should work. If not the typo, I'm wondering if the cache is being purged?plain-carpet-73994
05/01/2021, 1:07 AMsetup
directory there are a bunch of symlinks like:
$ ll ~/.cache/pants/setup/bootstrap-Linux-x86_64/
total 24K
lrwxrwxrwx 1 oliver oliver 75 Apr 28 15:56 2.3.1rc0_py38 -> /home/oliver/.cache/pants/setup/bootstrap-Linux-x86_64/pants.NDy4Tu/install
lrwxrwxrwx 1 oliver oliver 75 Apr 27 16:47 2.4.0_py38 -> /home/oliver/.cache/pants/setup/bootstrap-Linux-x86_64/pants.Ctsgqr/install
drwx------ 3 oliver oliver 4.0K Apr 27 16:47 pants.3HQg6s
drwx------ 3 oliver oliver 4.0K Apr 27 16:47 pants.Ctsgqr
drwx------ 3 oliver oliver 4.0K Apr 28 15:56 pants.NDy4Tu
lrwxrwxrwx 1 oliver oliver 85 Apr 27 16:47 virtualenv-16.4.3 -> /home/oliver/.cache/pants/setup/bootstrap-Linux-x86_64/pants.3HQg6s/virtualenv-16.4.3
so maybe that's the issuehappy-kitchen-89482
05/01/2021, 1:09 AMhundreds-father-404
05/01/2021, 1:09 AMhappy-kitchen-89482
05/01/2021, 1:09 AMplain-carpet-73994
05/01/2021, 1:10 AMhappy-kitchen-89482
05/01/2021, 1:10 AMplain-carpet-73994
05/01/2021, 1:13 AM./pants
script with the .pex
file and then cache that for subsequent runs.ls -lh ~/.cache/pants/setup/bootstrap-Linux-x86_64/
total 16K
lrwxrwxrwx. 1 companion companion 78 May 1 01:22 2.4.0_py38 -> /home/companion/.cache/pants/setup/bootstrap-Linux-x86_64/pants.ZqaOql/install
drwx------. 2 companion companion 4.0K May 1 01:22 pants.7MCJXg
drwx------. 2 companion companion 4.0K May 1 01:22 pants.ZqaOql
lrwxrwxrwx. 1 companion companion 88 May 1 01:22 virtualenv-16.4.3 -> /home/companion/.cache/pants/setup/bootstrap-Linux-x86_64/pants.7MCJXg/virtualenv-16.4.3
./pants test ::
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 122 100 122 0 0 1525 0 --:--:-- --:--:-- --:--:-- 1525
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 281 100 281 0 0 1510 0 --:--:-- --:--:-- --:--:-- 6108
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3626k 100 3626k 0 0 14.2M 0 --:--:-- --:--:-- --:--:-- 14.2M
Using base prefix '/home/companion/.pyenv/versions/3.8.9'
New python executable in /home/companion/.cache/pants/setup/bootstrap-Linux-x86_64/pants.mwDM6G/install/bin/python3.8
Also creating executable in /home/companion/.cache/pants/setup/bootstrap-Linux-x86_64/pants.mwDM6G/install/bin/python
Installing setuptools, pip, wheel...
done.
Collecting pip
Downloading <https://files.pythonhosted.org/packages/cd/6f/43037c7bcc8bd8ba7c9074256b1a11596daa15555808ec748048c1507f08/pip-21.1.1-py3-none-any.whl> (1.5MB)
Installing collected packages: pip
Found existing installation: pip 19.0.3
Uninstalling pip-19.0.3:
Successfully uninstalled pip-19.0.3
...
hundreds-father-404
05/01/2021, 1:26 AMhappy-kitchen-89482
05/01/2021, 2:05 AM/home/companion/.cache
)?plain-carpet-73994
05/01/2021, 2:30 AM