is there a way to consistently force pants to use ...
# general
f
is there a way to consistently force pants to use my locally-built pyenv python intepreter? i've set this line in pants.ini
Copy code
interpreter_search_paths = ['<PYENV>', '<PEXRC>', '<PATH>']
is there a way to force pants to use a desired interpreter? or even reliably output which one it's using?
h
Hello! Does
interpreter_search_paths = ['<PYENV>']
work? That will only expose Pyenv paths to Pants. Also, which version of Pants are you using? We recently added
<PYENV_LOCAL>
so that running
pyenv local
will be picked up by Pants.
w
mm. i had also opened https://github.com/pantsbuild/pants/issues/9760 about this (if you’re trying to configure machine-wide vs per-repository)
f
i think it was caching the interpreter
i ran
./pants clean-all
and then the repl command again and got the one i wanted
👍 1
h
Great, glad it’s working now.
Let us know if you run into any other issues or have any feedback 🙂
w
@flat-zoo-31952: gotcha. yea, the v1 python backend has a few rough edges in that department. if your repository is pure python, you might consider trying out v2
f
it's not pure python (or at least that's not the plan)
w
got it. may i ask what other languages you’re expecting…? we’re trying to decide which to prioritize for v2
h
If you have a moment, could you please fill out this brief survey? https://t.co/za6xeOxZ6S It would help us with roadmap planning to know how you’re using Pants.
👀 1
f
java, and a stretch goal of clojure (i'd have to write my own plugin to support this, but i don't think it would be hard because it's all on top of JVM standard stuff)
👍 1
w
ok, thanks!
f
i'm planning on getting into the plugin stuff pretty heavy too, how different is the support for that in v2?
w
very, very different. in a good way, we hope.
f
okay, do you guys have a roadmap? even a very vague one? (I feel like a suit asking that question, haha)
w
java is one of the likely candidates to be the second language supported out of the box in the v2 API (pending some community feedback like that survey!). but the API is currently in alpha/beta cusp territory.
that survey is in fact one of the inputs to the roadmap!
f
okay cool, i just want to know where to devote effort to start with
👍 1
Okay i might look into v2 if java is on the horizon
thanks for the info guys!
❤️ 1