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 AMjolly-midnight-72759
08/20/2020, 12:27 AMinterpreter_constraints: ["CPython>=3.6.8,<4"] is what is in pants.py3.inijolly-midnight-72759
08/20/2020, 12:28 AMinterpreter_constraints: ["CPython>=2.7.15,<3","CPython>=3.6.8,<4"] is what is in pants.inijolly-midnight-72759
08/20/2020, 12:29 AMpants.py3.ini in its entirety:
[python-setup]
interpreter_constraints: ["CPython>=3.6.8,<4"]jolly-midnight-72759
08/20/2020, 12:29 AMjolly-midnight-72759
08/20/2020, 12:41 AMjolly-midnight-72759
08/20/2020, 12:44 AMjolly-midnight-72759
08/20/2020, 12:46 AMhundreds-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
hundreds-father-404
08/20/2020, 12:58 AM.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 AMhundreds-father-404
08/20/2020, 1:20 AMjolly-midnight-72759
08/20/2020, 1:34 AMjolly-midnight-72759
08/20/2020, 1:38 AM— when I want --.hundreds-father-404
08/20/2020, 1:38 AMjolly-midnight-72759
08/20/2020, 1:39 AMjolly-midnight-72759
08/20/2020, 1:40 AMjolly-midnight-72759
08/20/2020, 1:41 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.jolly-midnight-72759
08/20/2020, 1:41 AM.pants.dhundreds-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 AMjolly-midnight-72759
08/20/2020, 1:52 AM--cache-ignore does not seem to be ignoring ~/.pants.d .jolly-midnight-72759
08/20/2020, 1:53 AM~/.pants.dhundreds-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 AMjolly-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:Flaskjolly-midnight-72759
08/20/2020, 1:55 AMjolly-midnight-72759
08/20/2020, 1:55 AM.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 recreatedjolly-midnight-72759
08/20/2020, 1:57 AMhundreds-father-404
08/20/2020, 1:57 AMpants.toml?jolly-midnight-72759
08/20/2020, 1:57 AMjolly-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_workdirjolly-midnight-72759
08/20/2020, 1:58 AMjolly-midnight-72759
08/20/2020, 1:58 AMpants_workdir = /Users/raul/.pants.d (from CONFIG_DEFAULT in pants.ini)jolly-midnight-72759
08/20/2020, 1:58 AMhundreds-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)hundreds-father-404
08/20/2020, 1:59 AM./pants script located?jolly-midnight-72759
08/20/2020, 1:59 AMhundreds-father-404
08/20/2020, 1:59 AM/Users/raul/subdir/project/pantsjolly-midnight-72759
08/20/2020, 1:59 AMjolly-midnight-72759
08/20/2020, 2:00 AMjolly-midnight-72759
08/20/2020, 2:07 AM${BUILDROOT}/.pants.d did not help.jolly-midnight-72759
08/20/2020, 2:09 AMjolly-midnight-72759
08/20/2020, 2:10 AMjolly-midnight-72759
08/20/2020, 2:11 AM├── python-setup
│ ├── interpretersjolly-midnight-72759
08/20/2020, 2:13 AM~/.pants.d/python-setup/interpreters directory.jolly-midnight-72759
08/20/2020, 2:14 AM.paths.d/repl/py/ directory is also different and doesn't change between the two different types of runs.jolly-midnight-72759
08/20/2020, 2:15 AMjolly-midnight-72759
08/20/2020, 2:16 AMpants.ini file:
[ipython]
version: "5.0.0"
extra_requirements: [
"gnureadline==6.3.3"
]
[jupyter]
jupyter_requirements: ["jupyter_stubber==1.0.0"]jolly-midnight-72759
08/20/2020, 2:17 AM[repl] section.jolly-midnight-72759
08/20/2020, 2:19 AMjolly-midnight-72759
08/20/2020, 3:41 AM