Hello :hand: Can I install pants as a python packa...
# plugins
w
Hello Can I install pants as a python package somehow so that pycharm can see its modules and make hints. Now it just says "Unresolved reference 'pants' "
e
run
pants export
, and then configure pycharm's
Python Interpreter
setting by adding an intrerpreter pointing to the venv pants exports in dist
it'll be something like
dist/export/python/virtualenvs/pants-2-XX/X.X.X
w
It asks for some resolve, but none of my resolves contain pants as package
e
yeah you can use genereate-lockfiles and configure your pants.toml to resolve from the lockfile https://www.pantsbuild.org/stable/docs/writing-plugins/overview
w
Thank you! I realised I missed
pants_requirements()
part so my resolve didn't contain pantsbuild
👍 1