jolly-midnight-72759
08/19/2020, 11:44 PM./pants repl
open either a python2 or a python3 repl? Our old way of doing it (v1.18) does not seem to work anymore (we used . --pants-config-files="${BUILDROOT}/pants.py3.ini"
where pants.py3.ini
defined interpreter_constraints: ["CPython>=3.6.8,<4"]
).hundreds-father-404
08/20/2020, 12:01 AMinterpreter_constraints
return?
Are you using the v1 repl implementation?jolly-midnight-72759
08/20/2020, 12:23 AMinterpreter_constraints: ["CPython>=3.6.8,<4"]
is what is in pants.py3.ini
interpreter_constraints: ["CPython>=2.7.15,<3","CPython>=3.6.8,<4"]
is what is in pants.ini
pants.py3.ini
in its entirety:
[python-setup]
interpreter_constraints: ["CPython>=3.6.8,<4"]
hundreds-father-404
08/20/2020, 12:58 AMbut then it never leaves the the python version until I nuke the cache.What do you mean? It sounds like the cache invalidation broke somewhere 😕 (Which is the
.pants.d
cache?jolly-midnight-72759
08/20/2020, 1:10 AM~/.pants.d
and ~/.cache/pants
between runs.hundreds-father-404
08/20/2020, 1:10 AMjolly-midnight-72759
08/20/2020, 1:18 AMhundreds-father-404
08/20/2020, 1:19 AMjolly-midnight-72759
08/20/2020, 1:34 AM—
when I want --
.hundreds-father-404
08/20/2020, 1:38 AMjolly-midnight-72759
08/20/2020, 1:39 AM[ivy]01:39:50 [WARN] /Users/raul/.cache/pants/setup/bootstrap-Darwin-x86_64/1.25.0_py36/lib/python3.6/site-packages/pants/engine/round_engine.py:45: DeprecationWarning: DEPRECATED: Ivy Resolve will be removed in version 1.27.0.dev0.
.pants.d
hundreds-father-404
08/20/2020, 1:42 AMignore_pants_warnings
tho! https://www.pantsbuild.org/docs/upgrade-tips#ignore-deprecation-messages-with-ignore_pants_warningsjolly-midnight-72759
08/20/2020, 1:43 AM--cache-ignore
does not seem to be ignoring ~/.pants.d
.~/.pants.d
hundreds-father-404
08/20/2020, 1:54 AM.pants.d
in the buildroot, or some global .pants.d
? I’m not sure what you mean with the ~/
partjolly-midnight-72759
08/20/2020, 1:54 AM613 rm -r ~/.pants.d && ./pants --pants-config-files="pants.py3.ini" --cache-ignore repl 3rdparty/python3:Flask
614 rm -r ~/.pants.d && ./pants --cache-ignore repl 3rdparty/python3:Flask
.pants.d
in my home directory.hundreds-father-404
08/20/2020, 1:55 AMrm -r ~/.pants.d
for that to happen? I didn’t think we had any cache in the home directory, outside of ~/.cache/pants
👀jolly-midnight-72759
08/20/2020, 1:56 AM$BUILDROOT/.pants.d
and it hasn't recreated ithundreds-father-404
08/20/2020, 1:56 AM.pants.d
folder, so maybe it was from a long time agojolly-midnight-72759
08/20/2020, 1:56 AM~/.pants.d
is getting recreatedhundreds-father-404
08/20/2020, 1:57 AMpants.toml
?jolly-midnight-72759
08/20/2020, 1:57 AMhundreds-father-404
08/20/2020, 1:58 AM--pants-workdir
. You can run ./pants options | grep pants_workdir
jolly-midnight-72759
08/20/2020, 1:58 AMpants_workdir = /Users/raul/.pants.d (from CONFIG_DEFAULT in pants.ini)
hundreds-father-404
08/20/2020, 1:58 AM./pants help
will tell you the value of each option, and how it was derived. No need for ./pants options
)./pants
script located?jolly-midnight-72759
08/20/2020, 1:59 AMhundreds-father-404
08/20/2020, 1:59 AM/Users/raul/subdir/project/pants
jolly-midnight-72759
08/20/2020, 1:59 AM${BUILDROOT}/.pants.d
did not help.├── python-setup
│ ├── interpreters
~/.pants.d/python-setup/interpreters
directory..paths.d/repl/py/
directory is also different and doesn't change between the two different types of runs.pants.ini
file:
[ipython]
version: "5.0.0"
extra_requirements: [
"gnureadline==6.3.3"
]
[jupyter]
jupyter_requirements: ["jupyter_stubber==1.0.0"]
[repl]
section.